]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 10:21:52 +0000 (12:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Jun 2022 10:21:52 +0000 (12:21 +0200)
added patches:
btrfs-add-0x-prefix-for-unsupported-optional-features.patch

queue-4.9/btrfs-add-0x-prefix-for-unsupported-optional-features.patch [new file with mode: 0644]
queue-4.9/series

diff --git a/queue-4.9/btrfs-add-0x-prefix-for-unsupported-optional-features.patch b/queue-4.9/btrfs-add-0x-prefix-for-unsupported-optional-features.patch
new file mode 100644 (file)
index 0000000..4add00f
--- /dev/null
@@ -0,0 +1,47 @@
+From d5321a0fa8bc49f11bea0b470800962c17d92d8f Mon Sep 17 00:00:00 2001
+From: Qu Wenruo <wqu@suse.com>
+Date: Tue, 10 May 2022 15:10:18 +0800
+Subject: btrfs: add "0x" prefix for unsupported optional features
+
+From: Qu Wenruo <wqu@suse.com>
+
+commit d5321a0fa8bc49f11bea0b470800962c17d92d8f upstream.
+
+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>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ fs/btrfs/disk-io.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/fs/btrfs/disk-io.c
++++ b/fs/btrfs/disk-io.c
+@@ -2716,7 +2716,7 @@ int open_ctree(struct super_block *sb,
+               ~BTRFS_FEATURE_INCOMPAT_SUPP;
+       if (features) {
+               btrfs_err(fs_info,
+-                  "cannot mount because of unsupported optional features (%llx)",
++                  "cannot mount because of unsupported optional features (0x%llx)",
+                   features);
+               err = -EINVAL;
+               goto fail_alloc;
+@@ -2769,7 +2769,7 @@ int open_ctree(struct super_block *sb,
+               ~BTRFS_FEATURE_COMPAT_RO_SUPP;
+       if (!(sb->s_flags & MS_RDONLY) && features) {
+               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);
+               err = -EINVAL;
+               goto fail_alloc;
index 249c4897c9eded2a303517991ed89e0dbc52746c..9d4be7c6f4d06db8ec377b766d2007bbe357d10d 100644 (file)
@@ -1,3 +1,4 @@
 usb-new-quirk-for-dell-gen-2-devices.patch
 ptrace-xtensa-replace-pt_singlestep-with-tif_singlestep.patch
 ptrace-reimplement-ptrace_kill-by-always-sending-sigkill.patch
+btrfs-add-0x-prefix-for-unsupported-optional-features.patch