]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs/290: skip test if we are running with nodatacow mount option
authorFilipe Manana <fdmanana@suse.com>
Wed, 12 Feb 2025 23:35:00 +0000 (23:35 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 14 Feb 2025 19:19:46 +0000 (03:19 +0800)
commit2bc083d85e3813f2876bf79609708879bcd8a2fb
tree7cea48e1b3dd70752441c85dcd97f6e856216549
parent595c8433603d6bc781cfb417e39dcaaca5a51603
btrfs/290: skip test if we are running with nodatacow mount option

We exercise corrupting an inline extent and inline extents can't be created
with nodatacow, we get instead a regular file extent item and if we attempt
to corrupt its disk_bytenr field with btrfs-corrupt-block we fail tree-checker
validation at mount time resulting in failure to mount and the following in
dmesg:

[514127.759739] BTRFS critical (device sdc): corrupt leaf: root=5 \
        block=30408704 slot=8 ino=257 file_offset=0, invalid disk_bytenr for \
        file extent, have 7416089308958521981, should be aligned to 4096
[514127.762715] BTRFS error (device sdc): read time tree block corruption \
        detected on logical 30408704 mirror 1

So add a _require_btrfs_no_nodatacow call to the test.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/290