|author||Qu Wenruo <firstname.lastname@example.org>||2018-07-26 14:39:01 +0800|
|committer||David Sterba <email@example.com>||2018-08-06 15:06:32 +0200|
btrfs-progs: fsck-tests: Add test image to check if btrfs check reports uninitialized rescan as error
Signed-off-by: Qu Wenruo <firstname.lastname@example.org> Signed-off-by: David Sterba <email@example.com>
Diffstat (limited to 'tests')
|-rw-r--r--||tests/fsck-tests/035-rescan-not-kicked-in/no_rescan_kicked_in.img||bin||0 -> 3072 bytes|
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/fsck-tests/035-rescan-not-kicked-in/no_rescan_kicked_in.img b/tests/fsck-tests/035-rescan-not-kicked-in/no_rescan_kicked_in.imgBinary files differ
new file mode 100644
diff --git a/tests/fsck-tests/035-rescan-not-kicked-in/test.sh b/tests/fsck-tests/035-rescan-not-kicked-in/test.sh
new file mode 100755
@@ -0,0 +1,17 @@
+# 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.
+ run_check "$TOP/btrfs" check "$1"