ovl: print error message for invalid mount options
authorhujianyang <hujianyang@huawei.com>
Thu, 15 Jan 2015 05:17:36 +0000 (13:17 +0800)
committerMiklos 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

index b90952f528b1cdf7414e49b5613e439d6b89fb7a..ab3c8cb8e52d2ffaaffd9940f578a2b2d2790dca 100644 (file)
@@ -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;
                }
        }