check_prereq btrfs
check_image() {
- local image
-
- image=$1
- run_check "$TOP/btrfs" check "$image"
+ run_check "$TOP/btrfs" check "$1"
}
check_all_images
check_prereq btrfs
check_image() {
- local image
-
- image=$1
- run_check "$TOP/btrfs" check "$image"
+ run_check "$TOP/btrfs" check "$1"
}
check_all_images
# redefine the one provided by common
check_image() {
- local image
-
- image=$1
- run_mayfail "$TOP/btrfs" check "$image"
+ run_mayfail "$TOP/btrfs" check "$1"
}
check_all_images "$TEST_TOP/fuzz-tests/images"
# redefine the one provided by common
check_image() {
- local image
-
- image=$1
truncate -s0 target
- run_mayfail "$TOP/btrfs-image" "$image" target
+ run_mayfail "$TOP/btrfs-image" "$1" target
truncate -s0 target
}
# redefine the one provided by common
check_image() {
- local image
-
- image=$1
- run_mayfail "$TOP/btrfs" inspect-internal dump-tree "$image"
+ run_mayfail "$TOP/btrfs" inspect-internal dump-tree "$1"
}
check_all_images "$TEST_TOP/fuzz-tests/images"
# redefine the one provided by common
check_image() {
- local image
-
- image=$1
- run_mayfail "$TOP/btrfs" inspect-internal tree-stats "$image"
+ run_mayfail "$TOP/btrfs" inspect-internal tree-stats "$1"
}
check_all_images "$TEST_TOP/fuzz-tests/images"
prepare_test_dev
get_fs_uuid() {
- local image
-
- image="$1"
- run_check_stdout $TOP/btrfs inspect-internal dump-super "$image" | \
+ run_check_stdout $TOP/btrfs inspect-internal dump-super "$1" | \
grep '^fsid' | awk '{print $2}'
}
get_log_root()
{
- local image
-
- image="$1"
- $TOP/btrfs inspect-internal dump-super "$image" | \
+ $TOP/btrfs inspect-internal dump-super "$1" | \
grep '^log_root\>' | awk '{print $2}'
}
get_log_root_level() {
- local image
-
- image="$1"
- $TOP/btrfs inspect-internal dump-super "$image" | \
+ $TOP/btrfs inspect-internal dump-super "$1" | \
grep '^log_root_level' | awk '{print $2}'
}