aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2023-05-10 12:48:29 +0100
committerZorro Lang <zlang@kernel.org>2023-05-12 20:20:38 +0800
commit802f42f7a5b24f89b64fbbb1316927cc5009d45e (patch)
treed47955c74406c2010ae5a3620bbac60822f3ea27
parent7ab65dae2751a85ece93f59666ebe918bb300a9a (diff)
downloadxfstests-dev-802f42f7a5b24f89b64fbbb1316927cc5009d45e.tar.gz
btrfs/254: correct subject of the relevant kernel patch and add git commit
The top comment of test btrfs/254 mentions a kernel patch with a subject of: "btrfs: harden identification of the stale device" but that is actually not correct, as the subject was slightly changed when the patch was picked to: "btrfs: harden identification of a stale device" So fix that by removing the comment and use instead a call to _fixed_by_kernel_commit, which also allows us to specify git commit id. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rwxr-xr-xtests/btrfs/2546
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/btrfs/254 b/tests/btrfs/254
index ae55ae8ca3..a358e374a2 100755
--- a/tests/btrfs/254
+++ b/tests/btrfs/254
@@ -7,9 +7,6 @@
#
# Test if the kernel can free the stale device entries.
#
-# Tests bug fixed by the kernel patch:
-# btrfs: harden identification of the stale device
-#
. ./common/preamble
_begin_fstest auto quick volume
@@ -42,6 +39,9 @@ _require_scratch_nocheck
_require_command "$WIPEFS_PROG" wipefs
_check_minimal_fs_size $((1024 * 1024 * 1024))
+_fixed_by_kernel_commit 770c79fb6550 \
+ "btrfs: harden identification of a stale device"
+
_scratch_dev_pool_get 3
setup_dmdev()