diff options
author | Theodore Ts'o <tytso@mit.edu> | 2011-09-15 10:38:55 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-09-16 10:24:09 -0400 |
commit | 89efc88e65136ece22708cc28ec4124a33feeecd (patch) | |
tree | 2f86bf3338a716d40fd6edc0308aad27e65ac359 /lib/e2p/feature.c | |
parent | 2418dfd7b934ee6bf3dc9a0aa4ffee8b37f4384f (diff) | |
download | e2fsprogs-89efc88e65136ece22708cc28ec4124a33feeecd.tar.gz |
libext2fs: add metadata checksum and snapshot feature flags
Reserve EXT4_FEATURE_RO_COMPAT_METADATA_CSUM and
EXT2_FEATURE_COMPAT_EXCLUDE_BITMAP. Also reserve fields in the
superblock and the inode for the checksums. In the block group
descriptor, reserve the exclude bitmap field for the snapshot feature,
and checksums for the inode and block allocation bitmaps.
With this commit, the metadata checksum and exclude bitmap features
should have reserved all of the fields they need in ext4's on-disk
format.
This commit also fixes an a missing byte swap for s_overhead_blocks.
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Darrick J. Wong <djwong@us.ibm.com>
Cc: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'lib/e2p/feature.c')
-rw-r--r-- | lib/e2p/feature.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/e2p/feature.c b/lib/e2p/feature.c index 16fba53a..965fc169 100644 --- a/lib/e2p/feature.c +++ b/lib/e2p/feature.c @@ -40,6 +40,8 @@ static struct feature feature_list[] = { "resize_inode" }, { E2P_FEATURE_COMPAT, EXT2_FEATURE_COMPAT_LAZY_BG, "lazy_bg" }, + { E2P_FEATURE_COMPAT, EXT2_FEATURE_COMPAT_EXCLUDE_BITMAP, + "snapshot" }, { E2P_FEATURE_RO_INCOMPAT, EXT2_FEATURE_RO_COMPAT_SPARSE_SUPER, "sparse_super" }, @@ -59,6 +61,8 @@ static struct feature feature_list[] = { "quota" }, { E2P_FEATURE_RO_INCOMPAT, EXT4_FEATURE_RO_COMPAT_BIGALLOC, "bigalloc"}, + { E2P_FEATURE_RO_INCOMPAT, EXT4_FEATURE_RO_COMPAT_METADATA_CSUM, + "metadata_csum"}, { E2P_FEATURE_INCOMPAT, EXT2_FEATURE_INCOMPAT_COMPRESSION, "compression" }, |