]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: btrfs: a new test case to verify scrub and rescue=idatacsums
authorQu Wenruo <wqu@suse.com>
Mon, 12 May 2025 09:39:10 +0000 (19:09 +0930)
committerZorro Lang <zlang@kernel.org>
Fri, 23 May 2025 15:39:02 +0000 (23:39 +0800)
commit3bbdf4241a5f4c7c0b02dad7617c29a053e2a24a
treefd650d9eb2dacb2bb69f9297ae666c45f64ba8e3
parent282e4fe8cf47693a45206bcf7c5957c83cb1043a
fstests: btrfs: a new test case to verify scrub and rescue=idatacsums

There is a kernel bug report that scrub will trigger a NULL pointer
dereference when rescue=idatacsums mount option is provided.

Add a test case for such situation, to verify kernel can gracefully
reject scrub when  there is no csum tree.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/336 [new file with mode: 0755]
tests/btrfs/336.out [new file with mode: 0644]