Skip to content

Commit 4a9cdec

Browse files
committed
ext4: Add new superblock fields reserved for the Next3 snapshot feature
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
1 parent c6ac12a commit 4a9cdec

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎fs/ext4/ext4.h‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,13 @@ struct ext4_super_block {
10021002
__u8 s_reserved_char_pad2;
10031003
__le16 s_reserved_pad;
10041004
__le64 s_kbytes_written; /* nr of lifetime kilobytes written */
1005-
__u32 s_reserved[160]; /* Padding to the end of the block */
1005+
__le32 s_snapshot_inum; /* Inode number of active snapshot */
1006+
__le32 s_snapshot_id; /* sequential ID of active snapshot */
1007+
__le64 s_snapshot_r_blocks_count; /* reserved blocks for active
1008+
snapshot's future use */
1009+
__le32 s_snapshot_list; /* inode number of the head of the
1010+
on-disk snapshot list */
1011+
__u32 s_reserved[155]; /* Padding to the end of the block */
10061012
};
10071013

10081014
#ifdef __KERNEL__

0 commit comments

Comments
 (0)