]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs: add a test case to check btrfs won't crash on certain corruption
authorQu Wenruo <wqu@suse.com>
Sat, 25 Feb 2023 09:14:38 +0000 (17:14 +0800)
committerZorro Lang <zlang@kernel.org>
Sun, 23 Jul 2023 04:56:22 +0000 (12:56 +0800)
commit9b84d93f225f4ffbb61030ac39ef89ee459e64b1
treeff9678b2306ad09412e27a61e16d7705b8e56614
parent6ca154c1b239d1e1fa9153d66272a1bf9e34c65e
btrfs: add a test case to check btrfs won't crash on certain corruption

The test case would reproduce the situation by creating an empty fs,
with SINGLE metadata profile, then corrupt the tree root manually.
Finally try mounting the corrupted fs, the mount should fail while our
kernel should not fail.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
[ Update commit log. Fix a line gt 80 chars. Use append to $seqres.full.
  Fix comment ]
Signed-off-by: Anand Jain <anand.jain@oracle.com>
tests/btrfs/295 [new file with mode: 0755]
tests/btrfs/295.out [new file with mode: 0644]