projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06e5801
)
ovl: print error message for invalid mount options
author
hujianyang
<hujianyang@huawei.com>
Thu, 15 Jan 2015 05:17:36 +0000
(13:17 +0800)
committer
Miklos Szeredi
<mszeredi@suse.cz>
Wed, 18 Mar 2015 09:29:47 +0000
(10:29 +0100)
Overlayfs should print an error message if an incorrect mount option
is caught like other filesystems.
After this patch, improper option input could be clearly known.
Reported-by: Fabian Sturm <fabian.sturm@aduu.de>
Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/overlayfs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/overlayfs/super.c
b/fs/overlayfs/super.c
index b90952f528b1cdf7414e49b5613e439d6b89fb7a..ab3c8cb8e52d2ffaaffd9940f578a2b2d2790dca 100644
(file)
--- a/
fs/overlayfs/super.c
+++ b/
fs/overlayfs/super.c
@@
-615,6
+615,7
@@
static int ovl_parse_opt(char *opt, struct ovl_config *config)
break;
default:
+ pr_err("overlayfs: unrecognized mount option \"%s\" or missing value\n", p);
return -EINVAL;
}
}