2008-01-24 19:37:36

by Miklos Szeredi

[permalink] [raw]
Subject: [patch 11/26] mount options: fix ext2

From: Miklos Szeredi <[email protected]>

Add noreservation option to /proc/mounts for ext2 filesystems.

Signed-off-by: Miklos Szeredi <[email protected]>
---

Index: linux/fs/ext2/super.c
===================================================================
--- linux.orig/fs/ext2/super.c 2008-01-17 19:00:55.000000000 +0100
+++ linux/fs/ext2/super.c 2008-01-23 21:38:08.000000000 +0100
@@ -285,6 +285,9 @@ static int ext2_show_options(struct seq_
seq_puts(seq, ",xip");
#endif

+ if (!test_opt(sb, RESERVATION))
+ seq_puts(seq, ",noreservation");
+
return 0;
}


--


2008-01-25 14:34:25

by Jan Kara

[permalink] [raw]
Subject: Re: [patch 11/26] mount options: fix ext2

> From: Miklos Szeredi <[email protected]>
>
> Add noreservation option to /proc/mounts for ext2 filesystems.
>
> Signed-off-by: Miklos Szeredi <[email protected]>
> ---
>
> Index: linux/fs/ext2/super.c
> ===================================================================
> --- linux.orig/fs/ext2/super.c 2008-01-17 19:00:55.000000000 +0100
> +++ linux/fs/ext2/super.c 2008-01-23 21:38:08.000000000 +0100
> @@ -285,6 +285,9 @@ static int ext2_show_options(struct seq_
> seq_puts(seq, ",xip");
> #endif
>
> + if (!test_opt(sb, RESERVATION))
> + seq_puts(seq, ",noreservation");
> +
> return 0;
> }
Looks fine. Acked-by: Jan Kara <[email protected]>

Honza
--
Jan Kara <[email protected]>
SuSE CR Labs