btrfs-progs: tests: Add test case with valid orphan inode

Regression test for false alerts in lowmem mode.

Signed-off-by: Qu Wenruo <wqu@suse.com>
[ update test ]
Signed-off-by: David Sterba <dsterba@suse.com>
master
Qu Wenruo 2018-02-05 14:47:12 +08:00 committed by David Sterba
parent 8d6c444782
commit 546cea6f36
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
#!/bin/bash
# To check if btrfs check can handle valid orphan items.
# Orphan item is a marker for deleted inodes that were open at the time of
# deletion. # Orphan inode/root will is not referenced and will have an orphan
# item, which should not be reported as error.
source "$TEST_TOP/common"
check_prereq btrfs
check_image() {
run_check "$TOP/btrfs" check "$1"
}
check_all_images