mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-16 09:46:55 +00:00
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>
This commit is contained in:
parent
42f7017ee6
commit
6386ae4d8c
BIN
tests/fsck-tests/034-bad-inode-flags/default_case.img
Normal file
BIN
tests/fsck-tests/034-bad-inode-flags/default_case.img
Normal file
Binary file not shown.
15
tests/fsck-tests/034-bad-inode-flags/test.sh
Executable file
15
tests/fsck-tests/034-bad-inode-flags/test.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/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
|
Loading…
Reference in New Issue
Block a user