From: hujianyang Date: Thu, 15 Jan 2015 05:17:36 +0000 (+0800) Subject: ovl: print error message for invalid mount options X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bead55ef775f6e25a8d286c0d47030580f577bec;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: hujianyang Signed-off-by: Miklos Szeredi --- 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; } }