2002-08-26 12:02:24

by Lars Marowsky-Bree

[permalink] [raw]
Subject: [PATCH] loop device failing on demand (2.4)

The attached small patch allows to "fail" a loop device on demand. Any further
request to the loop device will simply fail.

Even though it of course doesn't simulate the failures one might see in the
field, it is kind of handy for automated tests, for example for multipath I/O.

Done by Jens Axboe. The reason why I am sending it: I need it most and he is
on vacation.


Sincerely,
Lars Marowsky-Br?e <[email protected]>

--
Immortality is an adequate definition of high availability for me.
--- Gregory F. Pfister


Attachments:
(No filename) (518.00 B)
loopdevice.patch (1.50 kB)
Download all attachments