diff options
author | hujianyang <hujianyang@huawei.com> | 2015-01-15 08:17:36 +0300 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2015-03-18 12:29:47 +0300 |
commit | bead55ef775f6e25a8d286c0d47030580f577bec (patch) | |
tree | 8b2569646834c6d92b8c8b4ff711a24b2f823056 /fs/overlayfs | |
parent | 06e5801b8cb3fc057d88cb4dc03c0b64b2744cda (diff) | |
download | linux-bead55ef775f6e25a8d286c0d47030580f577bec.tar.xz |
ovl: print error message for invalid mount options
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>
Diffstat (limited to 'fs/overlayfs')
-rw-r--r-- | fs/overlayfs/super.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c index b90952f528b1..ab3c8cb8e52d 100644 --- 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; } } |