mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 00:39:48 +00:00
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>
This commit is contained in:
parent
eb09967089
commit
b288052e17
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue