summaryrefslogtreecommitdiffstats
path: root/fs/ext4/sysfs.c
diff options
context:
space:
mode:
authorDarrick J. Wong2015-10-17 22:16:02 +0200
committerTheodore Ts'o2015-10-17 22:16:02 +0200
commit8c81bd8f586c46eaf114758a78d82895a2b081c2 (patch)
treef23c8117906fa29aa0ad3890dd5a2faa8d8ed811 /fs/ext4/sysfs.c
parentext4: reserve code points for the project quota feature (diff)
downloadkernel-qcow2-linux-8c81bd8f586c46eaf114758a78d82895a2b081c2.tar.gz
kernel-qcow2-linux-8c81bd8f586c46eaf114758a78d82895a2b081c2.tar.xz
kernel-qcow2-linux-8c81bd8f586c46eaf114758a78d82895a2b081c2.zip
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/sysfs.c b/fs/ext4/sysfs.c
index 62bef0f06421..1b57c72f4a00 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,
};