summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2008-02-08 13:21:42 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 18:22:40 +0100
commit35c879dc302cc08cbbf108deb2be1c2859da0d18 (patch)
tree690b5a567d2b61305811ab21c29b99942ee2cb64
parentmount options: fix devpts (diff)
downloadlinux-35c879dc302cc08cbbf108deb2be1c2859da0d18.tar.xz
linux-35c879dc302cc08cbbf108deb2be1c2859da0d18.zip
mount options: fix ext2
Add noreservation option to /proc/mounts for ext2 filesystems. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Acked-by: Jan Kara <jack@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--fs/ext2/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index 22f1010bf79f..088b011bb97e 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -285,6 +285,9 @@ static int ext2_show_options(struct seq_file *seq, struct vfsmount *vfs)
seq_puts(seq, ",xip");
#endif
+ if (!test_opt(sb, RESERVATION))
+ seq_puts(seq, ",noreservation");
+
return 0;
}