summaryrefslogtreecommitdiffstats
path: root/fs/overlayfs
diff options
context:
space:
mode:
authorhujianyang <hujianyang@huawei.com>2015-01-15 13:17:36 +0800
committerMiklos Szeredi <mszeredi@suse.cz>2015-03-18 10:29:47 +0100
commitbead55ef775f6e25a8d286c0d47030580f577bec (patch)
tree8b2569646834c6d92b8c8b4ff711a24b2f823056 /fs/overlayfs
parent06e5801b8cb3fc057d88cb4dc03c0b64b2744cda (diff)
downloadlinux-bead55ef775f6e25a8d286c0d47030580f577bec.tar.bz2
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.c1
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;
}
}