summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2009-02-12 14:37:35 (GMT)
committerChris Mason <chris.mason@oracle.com>2009-02-12 14:37:35 (GMT)
commitb288052e1779261ae80138074989ef50358c4e58 (patch)
tree58c2a8e3bd4208c9b49f471f33303c88bdc20606 /fs
parenteb099670895f22970cd143875467c2768d6d87e5 (diff)
downloadlinux-b288052e1779261ae80138074989ef50358c4e58.tar.xz
Btrfs: process mount options on mount -o remount,
Btrfs wasn't parsing any new mount options during remount, making it difficult to set mount options on a root drive. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/btrfs/super.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index f3fd7e2..66b8341 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -511,6 +511,10 @@ static int btrfs_remount(struct super_block *sb, int *flags, char *data)
struct btrfs_root *root = btrfs_sb(sb);
int ret;
+ ret = btrfs_parse_options(root, data);
+ if (ret)
+ return -EINVAL;
+
if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY))
return 0;