Commit 02453bde authored by Anand Jain's avatar Anand Jain Committed by David Sterba

btrfs: manage check_int_print_mask mount option as %u

As check_int_print_mask mount option is unsigned so manage it as %u for
token verifications, instead of %d.
Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 764cb8b4
...@@ -381,7 +381,7 @@ static const match_table_t tokens = { ...@@ -381,7 +381,7 @@ static const match_table_t tokens = {
{Opt_skip_balance, "skip_balance"}, {Opt_skip_balance, "skip_balance"},
{Opt_check_integrity, "check_int"}, {Opt_check_integrity, "check_int"},
{Opt_check_integrity_including_extent_data, "check_int_data"}, {Opt_check_integrity_including_extent_data, "check_int_data"},
{Opt_check_integrity_print_mask, "check_int_print_mask=%d"}, {Opt_check_integrity_print_mask, "check_int_print_mask=%u"},
{Opt_rescan_uuid_tree, "rescan_uuid_tree"}, {Opt_rescan_uuid_tree, "rescan_uuid_tree"},
{Opt_fatal_errors, "fatal_errors=%s"}, {Opt_fatal_errors, "fatal_errors=%s"},
{Opt_commit_interval, "commit=%d"}, {Opt_commit_interval, "commit=%d"},
...@@ -756,17 +756,11 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options, ...@@ -756,17 +756,11 @@ int btrfs_parse_options(struct btrfs_fs_info *info, char *options,
break; break;
case Opt_check_integrity_print_mask: case Opt_check_integrity_print_mask:
ret = match_int(&args[0], &intarg); ret = match_int(&args[0], &intarg);
if (ret) { if (ret)
goto out;
} else if (intarg >= 0) {
info->check_integrity_print_mask = intarg;
btrfs_info(info,
"check_integrity_print_mask 0x%x",
info->check_integrity_print_mask);
} else {
ret = -EINVAL;
goto out; goto out;
} info->check_integrity_print_mask = intarg;
btrfs_info(info, "check_integrity_print_mask 0x%x",
info->check_integrity_print_mask);
break; break;
#else #else
case Opt_check_integrity_including_extent_data: case Opt_check_integrity_including_extent_data:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment