Skip to content

Commit

Permalink
Btrfs: process mount options on mount -o remount,
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chris Mason committed Feb 12, 2009
1 parent eb09967 commit b288052
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fs/btrfs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b288052

Please sign in to comment.