]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
f2fs: show error in case of invalid mount arguments
authorNamjae Jeon <namjae.jeon@samsung.com>
Sat, 1 Dec 2012 01:55:32 +0000 (10:55 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Tue, 11 Dec 2012 04:43:43 +0000 (13:43 +0900)
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>
fs/f2fs/super.c

index 4360600c81e891b6889ed8bb14bb3b2bdc7c42ef..5830e537c376e0138be98054bb89831be5097bfa 100644 (file)
@@ -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;
                }
        }