Skip to content

Commit cff7728

Browse files
adam900710kdave
authored andcommitted
btrfs-progs: test: add a check test case for verity items
Leo recently fixed a false alerts in btrfs-check where verity items are reported as unknown items. Add a test case for such case, the image is generated by enabling fsverity on a small file, which will have VERITY_DESC_ITEM and VERITY_MERKLE_ITEM items to trigger the previous false alerts. Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent ee143f8 commit cff7728

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

2.31 KB
Binary file not shown.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
#
3+
# Verify that check can handle btrfs with fsverity features properly
4+
5+
source "$TEST_TOP/common" || exit
6+
7+
check_prereq btrfs
8+
9+
check_image() {
10+
# The image contains verity data in the fs tree.
11+
# The check should not report verity items as errors.
12+
run_check "$TOP/btrfs" check "$1"
13+
}
14+
15+
check_all_images

0 commit comments

Comments
 (0)