We shouldn't silently ignore unrecognized options.
Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
substring_t args[MAX_OPT_ARGS];
char *p, *num;
int intarg;
substring_t args[MAX_OPT_ARGS];
char *p, *num;
int intarg;
case Opt_discard:
btrfs_set_opt(info->mount_opt, DISCARD);
break;
case Opt_discard:
btrfs_set_opt(info->mount_opt, DISCARD);
break;
+ case Opt_err:
+ printk(KERN_INFO "btrfs: unrecognized mount option "
+ "'%s'\n", p);
+ ret = -EINVAL;
+ goto out;