diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2015-10-17 16:16:02 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2015-10-17 16:16:02 -0400 |
commit | 8c81bd8f586c46eaf114758a78d82895a2b081c2 (patch) | |
tree | f23c8117906fa29aa0ad3890dd5a2faa8d8ed811 /fs/ext4/sysfs.c | |
parent | 8b4953e13f4c5d9a3c869f5fca7d51e1700e7db0 (diff) | |
download | op-kernel-dev-8c81bd8f586c46eaf114758a78d82895a2b081c2.zip op-kernel-dev-8c81bd8f586c46eaf114758a78d82895a2b081c2.tar.gz |
ext4: store checksum seed in superblock
Allow the filesystem to store the metadata checksum seed in the
superblock and add an incompat feature to say that we're using it.
This enables tune2fs to change the UUID on a mounted metadata_csum
FS without having to (racy!) rewrite all disk metadata.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/sysfs.c')
-rw-r--r-- | fs/ext4/sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/sysfs.c b/fs/ext4/sysfs.c index 62bef0f..1b57c72 100644 --- a/fs/ext4/sysfs.c +++ b/fs/ext4/sysfs.c @@ -224,12 +224,14 @@ EXT4_ATTR_FEATURE(lazy_itable_init); EXT4_ATTR_FEATURE(batched_discard); EXT4_ATTR_FEATURE(meta_bg_resize); EXT4_ATTR_FEATURE(encryption); +EXT4_ATTR_FEATURE(metadata_csum_seed); static struct attribute *ext4_feat_attrs[] = { ATTR_LIST(lazy_itable_init), ATTR_LIST(batched_discard), ATTR_LIST(meta_bg_resize), ATTR_LIST(encryption), + ATTR_LIST(metadata_csum_seed), NULL, }; |