Messages in this thread |  | | Date | Thu, 20 Jun 2002 12:50:36 +0100 | From | "Stephen C. Tweedie" <> | Subject | Re: (2.5.23) buffer layer error at buffer.c:2326 |
| |
Hi,
On Wed, Jun 19, 2002 at 01:02:32PM -0700, Andrew Morton wrote:
> What this says is: I still need to get down and set up a fault simulator > and make sure that we're doing all the right things when I/O errors occur.
I've got one for 2.4:
http://people.redhat.com/sct/patches/testdrive/
The testdrive-1.1-for-2.4.19pre10.patch can do random fault injection, at pseudo-random intervals of selectable frequency, on reads or writes or both. It's a modified loop.o which requires a separate testdrive.o, and you just losetup it over a block device (or, more easily, "mount -o loop /dev/foo /mnt/bar".)
It can trace IOs and will watch for suspicious activity such as overlapping IOs being submitted. The fault injection code trips in before the bh request ever gets to the underlying block device.
It shouldn't be too hard to adapt it to bio if you want.
Cheers, Stephen - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |