summaryrefslogtreecommitdiffstats
path: root/fs/f2fs
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2012-12-01 10:55:32 +0900
committerJaegeuk Kim <jaegeuk.kim@samsung.com>2012-12-11 13:43:43 +0900
commit72ce6094c0d3c1f0025eb118bb9406206f277479 (patch)
treef6e75b3224792ec26d15e57ac5cb4aa09f5630fc /fs/f2fs
parentbe4124f8720ef83757a66caa46f6045f0292d1f4 (diff)
downloadop-kernel-dev-72ce6094c0d3c1f0025eb118bb9406206f277479.zip
op-kernel-dev-72ce6094c0d3c1f0025eb118bb9406206f277479.tar.gz
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')
-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 4360600..5830e53 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;
}
}
OpenPOWER on IntegriCloud