Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* [PATCH v3 0/4] btrfs-progs: support for fs-verity fstests
@ 2022-07-18 22:13 Boris Burkov
  2022-07-18 22:13 ` [PATCH v3 1/4] btrfs-corrupt-block: define (u64)-1 as UNSET_U64 Boris Burkov
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Boris Burkov @ 2022-07-18 22:13 UTC (permalink / raw)
  To: linux-btrfs, kernel-team

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

--
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 | 128 ++++++++++++++++++++++++++++++++++--------
 kernel-shared/ctree.h |   4 +-
 2 files changed, 109 insertions(+), 23 deletions(-)

-- 
2.37.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-19 20:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-18 22:13 [PATCH v3 0/4] btrfs-progs: support for fs-verity fstests Boris Burkov
2022-07-18 22:13 ` [PATCH v3 1/4] btrfs-corrupt-block: define (u64)-1 as UNSET_U64 Boris Burkov
2022-07-18 22:13 ` [PATCH v3 2/4] btrfs-progs: corrupt generic item data with btrfs-corrupt-block Boris Burkov
2022-07-18 22:13 ` [PATCH v3 3/4] btrfs-progs: expand corrupt_file_extent in btrfs-corrupt-block Boris Burkov
2022-07-18 22:13 ` [PATCH v3 4/4] btrfs-progs: add VERITY ro compat flag Boris Burkov
2022-07-19 20:34 ` [PATCH v3 0/4] btrfs-progs: support for fs-verity fstests Sweet Tea Dorminy
2022-07-19 20:43 ` Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox