[PATCH v2 3/3] common/verity: fix btrfs-corrupt-block -v option

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



The btrfs-corrupt-block -v has been replaced with --value so fix it.

_fsv_scratch_corrupt_merkle_tree() uses the btrfs-corrupt-block
--value option, so add the "value" prerequisite in the function
_require_fsverity_corruption.

Signed-off-by: Anand Jain <anand.jain@xxxxxxxxxx>
---
 common/verity | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/common/verity b/common/verity
index 03d175ce1b7a..59b67e12010a 100644
--- a/common/verity
+++ b/common/verity
@@ -191,7 +191,7 @@ _require_fsverity_corruption()
 {
 	_require_xfs_io_command "fiemap"
 	if [ $FSTYP == "btrfs" ]; then
-		_require_btrfs_corrupt_block
+		_require_btrfs_corrupt_block "value"
 	fi
 }
 
@@ -402,7 +402,8 @@ _fsv_scratch_corrupt_merkle_tree()
 			# in the default filesystem tree (-r 5) and corrupt one byte (-b 1) at
 			# $offset (-o $offset) with the ascii representation of the byte we read
 			# (-v $ascii)
-			$BTRFS_CORRUPT_BLOCK_PROG -r 5 -I $ino,37,0 -v $ascii -o $offset -b 1 $SCRATCH_DEV
+			$BTRFS_CORRUPT_BLOCK_PROG -r 5 -I $ino,37,0 \
+			       --value $ascii --offset $offset -b 1 $SCRATCH_DEV
 			(( offset += 1 ))
 		done
 		_scratch_mount
-- 
2.39.3





[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux