提交 72ce6094 编写于 作者: N Namjae Jeon 提交者: Jaegeuk Kim

f2fs: show error in case of invalid mount arguments

print the invalid argument/value from parse_options in case of
mount failure.
Signed-off-by: NNamjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: NAmit Sahrawat <a.sahrawat@samsung.com>
上级 be4124f8
...@@ -311,6 +311,8 @@ static int parse_options(struct f2fs_sb_info *sbi, char *options) ...@@ -311,6 +311,8 @@ static int parse_options(struct f2fs_sb_info *sbi, char *options)
set_opt(sbi, DISABLE_EXT_IDENTIFY); set_opt(sbi, DISABLE_EXT_IDENTIFY);
break; break;
default: default:
pr_err("Unrecognized mount option \"%s\" or missing value\n",
p);
return -EINVAL; return -EINVAL;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册