mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/kdave/btrfs-progs.git
synced 2024-11-28 14:44:36 +08:00
btrfs-progs: tests: Add --force for repair command
Since commit e388bf38
("btrfs-progs: check: warn users about the
possible dangers of --repair") `btrfs check --repair` will wait 10
seconds before really repair the fs.
This hugely slow down the fsck tests. Add --force for check_image()
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
dca55d6450
commit
121b9a2e4c
@ -331,7 +331,7 @@ check_image()
|
||||
"$TOP/btrfs" check "$image" >> "$RESULTS" 2>&1
|
||||
[ $? -eq 0 ] && _fail "btrfs check should have detected corruption"
|
||||
|
||||
run_check "$TOP/btrfs" check --repair "$image"
|
||||
run_check "$TOP/btrfs" check --repair --force "$image"
|
||||
run_check "$TOP/btrfs" check "$image"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user