Searched hist:a00f5276e26636cbf72f24f79831026d2e2868e7 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/md/ |
H A D | dm-flakey.c | diff a00f5276e26636cbf72f24f79831026d2e2868e7 Tue Nov 13 07:04:24 CST 2018 Sweet Tea <sweettea@redhat.com> dm flakey: Properly corrupt multi-page bios.
The flakey target is documented to be able to corrupt the Nth byte in a bio, but does not corrupt byte indices after the first biovec in the bio. Change the corrupting function to actually corrupt the Nth byte no matter in which biovec that index falls.
A test device generating two-page bios, atop a flakey device configured to corrupt a byte index on the second page, verified both the failure to corrupt before this patch and the expected corruption after this change.
Signed-off-by: John Dorminy <jdorminy@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
|