btrfs-progs/tests/fsck-tests/034-bad-inode-flags/test.sh
Su Yue 6386ae4d8c btrfs-progs: fsck-tests: add test case to check symlinks with bad flags
There are two bad symlinks in the test case.  One is with immutable
attribute.  Another one is with append attribute.

Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2018-06-07 16:37:38 +02:00

16 lines
400 B
Bash
Executable file

#!/bin/bash
# In order to confirm that 'btrfs check' supports checking symlinks
# with immutable/append attributes that are not possible to set by standard
# syscall or ioctl so they're handled as corruption
source "$TEST_TOP/common"
check_prereq btrfs
check_image() {
run_mustfail "check should report errors about inode flags" \
$SUDO_HELPER "$TOP/btrfs" check "$1"
}
check_all_images