mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-05 04:11:51 +00:00
c91d5bf144
003-multi-check-unmounted was taking a long time, this is because it was doing the 10 second countdown for each iteration of --init-csum-tree. Fix this by using --force to bypass the countdown. Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
27 lines
688 B
Bash
Executable File
27 lines
688 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# iterate over all fuzzed images and run 'btrfs check', try various options to
|
|
# get more code coverage
|
|
|
|
source "$TEST_TOP/common"
|
|
|
|
setup_root_helper
|
|
check_prereq btrfs
|
|
|
|
# redefine the one provided by common
|
|
check_image() {
|
|
local image
|
|
|
|
image=$1
|
|
run_mayfail $TOP/btrfs check -s 1 "$image"
|
|
run_mayfail $TOP/btrfs check --force --init-csum-tree "$image"
|
|
run_mayfail $TOP/btrfs check --repair --force --init-extent-tree "$image"
|
|
run_mayfail $TOP/btrfs check --repair --force --check-data-csum "$image"
|
|
run_mayfail $TOP/btrfs check --subvol-extents "$image"
|
|
run_mayfail $TOP/btrfs check --repair --force "$image"
|
|
}
|
|
|
|
check_all_images "$TEST_TOP/fuzz-tests/images"
|
|
|
|
exit 0
|