Skip to contentSkip to conversation

f2fs: show error in case of invalid mount arguments

PATCH In review Namjae Jeon 1 participant 1 message Dec 1, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/6 f2fs: show error in case of invalid mount arguments

From: Namjae Jeon <[email protected]>

print the invalid argument/value from parse_options in case of mount failure.

---
 fs/f2fs/super.c |    2 ++
 1 file changed, 2 insertions(+)
fs/f2fs/super.c +2 -0
index 4360600..c72e517 100644
@@ -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;
 		}
 	}
Signature · 1 line
1.7.9.5