Skip to content

Commit d5321a0

Browse files
adam900710kdave
authored andcommitted
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: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 97bdf1a commit d5321a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fs/btrfs/disk-io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3612,7 +3612,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
36123612
~BTRFS_FEATURE_INCOMPAT_SUPP;
36133613
if (features) {
36143614
btrfs_err(fs_info,
3615-
"cannot mount because of unsupported optional features (%llx)",
3615+
"cannot mount because of unsupported optional features (0x%llx)",
36163616
features);
36173617
err = -EINVAL;
36183618
goto fail_alloc;
@@ -3650,7 +3650,7 @@ int __cold open_ctree(struct super_block *sb, struct btrfs_fs_devices *fs_device
36503650
~BTRFS_FEATURE_COMPAT_RO_SUPP;
36513651
if (!sb_rdonly(sb) && features) {
36523652
btrfs_err(fs_info,
3653-
"cannot mount read-write because of unsupported optional features (%llx)",
3653+
"cannot mount read-write because of unsupported optional features (0x%llx)",
36543654
features);
36553655
err = -EINVAL;
36563656
goto fail_alloc;

0 commit comments

Comments
 (0)