projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb09967
)
Btrfs: process mount options on mount -o remount,
author
Chris Mason
<chris.mason@oracle.com>
Thu, 12 Feb 2009 14:37:35 +0000
(09:37 -0500)
committer
Chris Mason
<chris.mason@oracle.com>
Thu, 12 Feb 2009 14:37:35 +0000
(09:37 -0500)
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>
fs/btrfs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/super.c
b/fs/btrfs/super.c
index f3fd7e2cbc383aaefd42be70a02f80c759b6979b..66b8341e2dbac695fb7b649839bf61b08c9ec8d7 100644
(file)
--- 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;