Skip to content

Commit 6a912e8

Browse files
LiBaokun96tytso
authored andcommitted
ext4: show the default enabled i_version option
Display `i_version` in `/proc/fs/ext4/sdx/options`, even though it's default enabled. This aids users managing multi-version scenarios and simplifies debugging. Signed-off-by: Baokun Li <libaokun1@huawei.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://patch.msgid.link/20250703073903.6952-1-libaokun@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 099b847 commit 6a912e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/ext4/super.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2975,6 +2975,8 @@ static int _ext4_show_options(struct seq_file *seq, struct super_block *sb,
29752975
SEQ_OPTS_PRINT("min_batch_time=%u", sbi->s_min_batch_time);
29762976
if (nodefs || sbi->s_max_batch_time != EXT4_DEF_MAX_BATCH_TIME)
29772977
SEQ_OPTS_PRINT("max_batch_time=%u", sbi->s_max_batch_time);
2978+
if (nodefs && sb->s_flags & SB_I_VERSION)
2979+
SEQ_OPTS_PUTS("i_version");
29782980
if (nodefs || sbi->s_stripe)
29792981
SEQ_OPTS_PRINT("stripe=%lu", sbi->s_stripe);
29802982
if (nodefs || EXT4_MOUNT_DATA_FLAGS &

0 commit comments

Comments
 (0)