2020-03-04 07:27:01 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
|
|
|
# Verify that check can detect overlapped csum items
|
|
|
|
#
|
|
|
|
# There is one report of overlap csum items, causing tree-checker to reject
|
|
|
|
# the csum tree.
|
|
|
|
#
|
|
|
|
# Make sure btrfs check can at least detect such error
|
|
|
|
|
2023-04-19 15:08:41 +00:00
|
|
|
source "$TEST_TOP/common" || exit
|
2020-03-04 07:27:01 +00:00
|
|
|
|
|
|
|
check_prereq btrfs
|
|
|
|
|
|
|
|
check_image() {
|
|
|
|
run_mustfail "overlapping csum item not detected" \
|
|
|
|
"$TOP/btrfs" check "$1"
|
|
|
|
}
|
|
|
|
|
|
|
|
check_all_images
|