2008-03-04 22:38:52

by Andrew Morton

[permalink] [raw]
Subject: [patch 81/83] ext3: fix mount option parsing

From: Josef Bacik <[email protected]>

The "resize" option won't be noticed as it comes after the NULL option, so if
you try to mount (or in this case remount) with that option it won't be
recognized.

Signed-off-by: Josef Bacik <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---

fs/ext3/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN fs/ext3/super.c~ext3-fix-mount-option-parsing fs/ext3/super.c
--- a/fs/ext3/super.c~ext3-fix-mount-option-parsing
+++ a/fs/ext3/super.c
@@ -806,8 +806,8 @@ static match_table_t tokens = {
{Opt_quota, "quota"},
{Opt_usrquota, "usrquota"},
{Opt_barrier, "barrier=%u"},
- {Opt_err, NULL},
{Opt_resize, "resize"},
+ {Opt_err, NULL},
};

static ext3_fsblk_t get_sb_block(void **data)
_