ext4: Add new superblock fields reserved for the Next3 snapshot feature
authorTheodore Ts'o <tytso@mit.edu>
Tue, 29 Jun 2010 15:00:23 +0000 (11:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 29 Jun 2010 15:00:23 +0000 (11:00 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4.h

index 8b6d297c8c739d93e4ec1533ff5aad5acec644cd..3864a2775458320f945e76fec5ed5541d2746562 100644 (file)
@@ -1002,7 +1002,13 @@ struct ext4_super_block {
        __u8    s_reserved_char_pad2;
        __le16  s_reserved_pad;
        __le64  s_kbytes_written;       /* nr of lifetime kilobytes written */
-       __u32   s_reserved[160];        /* Padding to the end of the block */
+       __le32  s_snapshot_inum;        /* Inode number of active snapshot */
+       __le32  s_snapshot_id;          /* sequential ID of active snapshot */
+       __le64  s_snapshot_r_blocks_count; /* reserved blocks for active
+                                             snapshot's future use */
+       __le32  s_snapshot_list;        /* inode number of the head of the
+                                          on-disk snapshot list */
+       __u32   s_reserved[155];        /* Padding to the end of the block */
 };
 
 #ifdef __KERNEL__