summaryrefslogtreecommitdiff
path: root/fs/f2fs/super.c
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2012-12-01 05:55:32 +0400
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2012-12-11 08:43:43 +0400
commit72ce6094c0d3c1f0025eb118bb9406206f277479 (patch)
treef6e75b3224792ec26d15e57ac5cb4aa09f5630fc /fs/f2fs/super.c
parentbe4124f8720ef83757a66caa46f6045f0292d1f4 (diff)
downloadlinux-72ce6094c0d3c1f0025eb118bb9406206f277479.tar.xz
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 'fs/f2fs/super.c')
-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;
}
}