Commit d5321a0f authored by Qu Wenruo's avatar Qu Wenruo Committed by David Sterba

btrfs: add "0x" prefix for unsupported optional features

The following error message lack the "0x" obviously:

  cannot mount because of unsupported optional features (4000)

Add the prefix to make it less confusing. This can happen on older
kernels that try to mount a filesystem with newer features so it makes
sense to backport to older trees.

CC: stable@vger.kernel.org # 4.14+
Reviewed-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarQu Wenruo <wqu@suse.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 97bdf1a9
...@@ -3612,7 +3612,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device ...@@ -3612,7 +3612,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
~BTRFS_FEATURE_INCOMPAT_SUPP; ~BTRFS_FEATURE_INCOMPAT_SUPP;
if (features) { if (features) {
btrfs_err(fs_info, btrfs_err(fs_info,
"cannot mount because of unsupported optional features (%llx)", "cannot mount because of unsupported optional features (0x%llx)",
features); features);
err = -EINVAL; err = -EINVAL;
goto fail_alloc; goto fail_alloc;
...@@ -3650,7 +3650,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device ...@@ -3650,7 +3650,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
~BTRFS_FEATURE_COMPAT_RO_SUPP; ~BTRFS_FEATURE_COMPAT_RO_SUPP;
if (!sb_rdonly(sb) && features) { if (!sb_rdonly(sb) && features) {
btrfs_err(fs_info, btrfs_err(fs_info,
"cannot mount read-write because of unsupported optional features (%llx)", "cannot mount read-write because of unsupported optional features (0x%llx)",
features); features);
err = -EINVAL; err = -EINVAL;
goto fail_alloc; goto fail_alloc;
......
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