Linux EXT4 FS development
 help / color / mirror / Atom feed
* [PATCH 1/2] ext4: show the default enabled i_version option
@ 2025-07-03  7:39 libaokun
  2025-07-03  7:39 ` [PATCH 2/2] ext4: preserve SB_I_VERSION on remount libaokun
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: libaokun @ 2025-07-03  7:39 UTC (permalink / raw)
  To: linux-ext4
  Cc: tytso, adilger.kernel, jack, linux-kernel, yi.zhang, yangerkun,
	libaokun1, libaokun

From: Baokun Li <libaokun1@huawei.com>

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>
---
 fs/ext4/super.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index c7d39da7e733..9203518786e4 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -2975,6 +2975,8 @@ static int _ext4_show_options(struct seq_file *seq, struct super_block *sb,
 		SEQ_OPTS_PRINT("min_batch_time=%u", sbi->s_min_batch_time);
 	if (nodefs || sbi->s_max_batch_time != EXT4_DEF_MAX_BATCH_TIME)
 		SEQ_OPTS_PRINT("max_batch_time=%u", sbi->s_max_batch_time);
+	if (nodefs && sb->s_flags & SB_I_VERSION)
+		SEQ_OPTS_PUTS("i_version");
 	if (nodefs || sbi->s_stripe)
 		SEQ_OPTS_PRINT("stripe=%lu", sbi->s_stripe);
 	if (nodefs || EXT4_MOUNT_DATA_FLAGS &
-- 
2.46.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-14 14:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-03  7:39 [PATCH 1/2] ext4: show the default enabled i_version option libaokun
2025-07-03  7:39 ` [PATCH 2/2] ext4: preserve SB_I_VERSION on remount libaokun
2025-07-03 16:41   ` Jan Kara
2025-07-03 16:36 ` [PATCH 1/2] ext4: show the default enabled i_version option Jan Kara
2025-08-14 14:48 ` Theodore Ts'o

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox