Skip to content

btrfs-progs: support for fs-verity fstests

Boris Burkov linux-btrfs 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 1 replyIn review
  2. v34 patches 2 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4btrfs-corrupt-block: define (u64)-1 as UNSET_U64btrfs-corrupt-block.c+15 -140 replies
2/4btrfs-progs: corrupt generic item data with btrfs-corrupt-blockbtrfs-corrupt-block.c+74 -30 replies
3/4btrfs-progs: expand corrupt_file_extent in btrfs-corrupt-blockbtrfs-corrupt-block.c+15 -50 replies
4/4btrfs-progs: add VERITY ro compat flagkernel-shared/ctree.h+3 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchSweet Tea Dorminy
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] btrfs-progs: support for fs-verity fstests

Adding fstests for fs-verity on btrfs needs some light support from btrfs-progs. Specifically, it needs additional device corruption features to test corruption detection, and it needs the RO COMPAT flag.

The first patch defines (u64)-1 as "UNSET_U64"
The second patch adds corrupting arbitrary regions of item data with -I. The third patch adds corrupting holes and prealloc in extent data. The fourth patch includes BTRFS_FEATURE_RO_COMPAT_VERITY to ctree.h

--
v4: use ternary and get rid of "bogus_type" to cleanup input handling of
'corrupt_file_extent'
v3: add patch #defining (u64)-1 in btrfs-corrupt-block
check item bounds in corruption function
improve usage message for new corruption use case
add patch with verity ro compat flag
v2: minor cleanups from rebasing after a year

Boris Burkov (4):
btrfs-corrupt-block: define (u64)-1 as UNSET_U64
btrfs-progs: corrupt generic item data with btrfs-corrupt-block
btrfs-progs: expand corrupt_file_extent in btrfs-corrupt-block
btrfs-progs: add VERITY ro compat flag

 btrfs-corrupt-block.c | 126 ++++++++++++++++++++++++++++++++++--------
 kernel-shared/ctree.h |   4 +-
 2 files changed, 107 insertions(+), 23 deletions(-)
Signature · 1 line
2.37.1