summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2012-12-01 02:55:32 +0100
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2012-12-11 05:43:43 +0100
commit72ce6094c0d3c1f0025eb118bb9406206f277479 (patch)
treef6e75b3224792ec26d15e57ac5cb4aa09f5630fc /fs/f2fs/super.c
parentf2fs: fix the compiler warning for uninitialized use of variable (diff)
downloadlinux-72ce6094c0d3c1f0025eb118bb9406206f277479.tar.xz
linux-72ce6094c0d3c1f0025eb118bb9406206f277479.zip
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: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Amit Sahrawat <a.sahrawat@samsung.com>
Diffstat (limited to '')
-rw-r--r--fs/f2fs/super.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c
index 4360600c81e8..5830e537c376 100644
--- a/fs/f2fs/super.c
+++ b/fs/f2fs/super.c
@@ -311,6 +311,8 @@ static int parse_options(struct f2fs_sb_info *sbi, char *options)
set_opt(sbi, DISABLE_EXT_IDENTIFY);
break;
default:
+ pr_err("Unrecognized mount option \"%s\" or missing value\n",
+ p);
return -EINVAL;
}
}