From: Gabriel Krisman Bertazi Date: Mon, 19 Nov 2018 03:31:10 +0000 (-0500) Subject: Add timestamp extension bits to superblock X-Git-Tag: v1.45.0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e39f507a0cd44fa13d58e0e6f1c95c7a415fca19;p=thirdparty%2Fe2fsprogs.git Add timestamp extension bits to superblock Re-sync the superblock structure declaration with its kernel counterpart to include the fields added by kernel commit 6a0678a79bb3 ("ext4: super: extend timestamps to 40 bits") Signed-off-by: Gabriel Krisman Bertazi Signed-off-by: Theodore Ts'o --- diff --git a/lib/ext2fs/ext2_fs.h b/lib/ext2fs/ext2_fs.h index 13c2c20e5..ab2595486 100644 --- a/lib/ext2fs/ext2_fs.h +++ b/lib/ext2fs/ext2_fs.h @@ -748,7 +748,14 @@ struct ext2_super_block { /*268*/ __le32 s_lpf_ino; /* Location of the lost+found inode */ __le32 s_prj_quota_inum; /* inode for tracking project quota */ /*270*/ __le32 s_checksum_seed; /* crc32c(orig_uuid) if csum_seed set */ - __le32 s_reserved[98]; /* Padding to the end of the block */ +/*274*/ __u8 s_wtime_hi; + __u8 s_mtime_hi; + __u8 s_mkfs_time_hi; + __u8 s_lastcheck_hi; + __u8 s_first_error_time_hi; + __u8 s_last_error_time_hi; + __u8 s_pad[2]; + __le32 s_reserved[96]; /* Padding to the end of the block */ /*3fc*/ __u32 s_checksum; /* crc32c(superblock) */ };