Browse Source

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>
hujianyang 10 years ago
parent
commit
bead55ef77
1 changed files with 1 additions and 0 deletions
  1. 1 0
      fs/overlayfs/super.c

+ 1 - 0
fs/overlayfs/super.c

@@ -615,6 +615,7 @@ static int ovl_parse_opt(char *opt, struct ovl_config *config)
 			break;
 			break;
 
 
 		default:
 		default:
+			pr_err("overlayfs: unrecognized mount option \"%s\" or missing value\n", p);
 			return -EINVAL;
 			return -EINVAL;
 		}
 		}
 	}
 	}