1 ext4: Show delalloc options
3 From: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
5 Delayed allocation is enabled by default.
6 So if they are are not set in mount options
7 that means the user explicity disabled them
8 using nomablloc and nodelalloc option. Show
9 the same in ext4_show_options
11 Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
12 Acked-by: Eric Sandeen <sandeen@redhat.com>
13 Signed-off-by: Mingming Cao <cmm@us.ibm.com>
14 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
18 fs/ext4/super.c | 3 +++
19 1 file changed, 3 insertions(+)
22 Index: linux-2.6.26-rc6/fs/ext4/super.c
23 ===================================================================
24 --- linux-2.6.26-rc6.orig/fs/ext4/super.c 2008-06-17 10:43:40.000000000 -0700
25 +++ linux-2.6.26-rc6/fs/ext4/super.c 2008-06-17 10:43:40.000000000 -0700
26 @@ -756,6 +756,9 @@ static int ext4_show_options(struct seq_
27 seq_puts(seq, ",nomballoc");
28 if (test_opt(sb, I_VERSION))
29 seq_puts(seq, ",i_version");
30 + if (!test_opt(sb, DELALLOC))
31 + seq_puts(seq, ",nodelalloc");
35 seq_printf(seq, ",stripe=%lu", sbi->s_stripe);