summaryrefslogtreecommitdiff
path: root/tests/fsck-tests/026-bad-dir-item-name/test.sh
blob: a38bf045ae8202e84f3598ab8f978db41aa9e901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#
# confirm whether check detects name and hash mismatch in dir_item

source "$TEST_TOP/common"

check_prereq btrfs

image=$(extract_image "./default_case.img.xz")

run_mustfail "dir_item hash mismatch not found" "$TOP/btrfs" check "$image"

rm -f "$image"