generic: test corrupting verity files
authorEric Biggers <ebiggers@google.com>
Mon, 30 Sep 2019 21:15:50 +0000 (14:15 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Oct 2019 13:01:41 +0000 (21:01 +0800)
commit98abd9a8d47bd7e858b95f2ecb957fd78d78dc54
treeda7cce248de660e7cf89db7e6a5b1274e26fda69
parent59c53985cbe6044bfe1dc5e7ab46d392b2079070
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>
tests/generic/574 [new file with mode: 0755]
tests/generic/574.out [new file with mode: 0644]
tests/generic/group