btrfs-progs: fsck-tests: Add test image to check if btrfs check reports uninitialized rescan as error
Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
1d5b2ad921
commit
d99615284a
Binary file not shown.
17
tests/fsck-tests/035-rescan-not-kicked-in/test.sh
Executable file
17
tests/fsck-tests/035-rescan-not-kicked-in/test.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
# Under certain power loss case, btrfs quota tree can be initialized but
|
||||
# rescan not kicked in. Can be also reproduced by fstests/btrfs/166 but with
|
||||
# low probability.
|
||||
#
|
||||
# This test case verifies a special case when 'btrfs check' does not report
|
||||
# qgroup accounting differece as an error, thus no false alert for btrfs/166.
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
check_image() {
|
||||
run_check "$TOP/btrfs" check "$1"
|
||||
}
|
||||
|
||||
check_all_images
|
Loading…
Reference in a new issue