generic: test corrupting verity files

This test corrupts various parts of the contents of a verity file, or
parts of its Merkle tree, by writing directly to the block device.  It
verifies that this causes I/O errors when the relevant part of the
contents is later read by any means.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
Eric Biggers
2019-09-30 14:15:50 -07:00
committed by Eryu Guan
parent 59c53985cb
commit 98abd9a8d4
3 changed files with 246 additions and 0 deletions
+1
View File
@@ -576,3 +576,4 @@
571 auto quick
572 auto quick verity
573 auto quick verity
574 auto quick verity