Fix ext3-4-migrate.patch and mballoc-core.patches
[ext4-patch-queue.git] / ext4_show_stripe_mount_option.patch
blob4bb328c5299e5d20744b824ad48660194103db54
1 ext4: Add stripe= option to /proc/mounts
2 From: Miklos Szeredi <mszeredi@suse.cz>
4 Add stripe= option to /proc/mounts for ext4 filesystems.
6 Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
7 Signed-off-by: Mingming Cao <cmm@us.ibm.com>
8 ---
9 fs/ext4/super.c | 2 ++
10 1 file changed, 2 insertions(+)
12 Index: linux-2.6.24-rc8/fs/ext4/super.c
13 ===================================================================
14 --- linux-2.6.24-rc8.orig/fs/ext4/super.c 2008-01-25 08:48:59.000000000 -0800
15 +++ linux-2.6.24-rc8/fs/ext4/super.c 2008-01-25 09:06:07.000000000 -0800
16 @@ -741,6 +741,8 @@ static int ext4_show_options(struct seq_
17 if (test_opt(sb, I_VERSION))
18 seq_puts(seq, ",i_version");
20 + if (sbi->s_stripe)
21 + seq_printf(seq, ",stripe=%lu", sbi->s_stripe);
23 * journal mode get enabled in different ways
24 * So just print the value even if we didn't specify it