From: Heikki Orsila <shdl@za...> - 2007-12-08 18:47:12
Has someone written a FUSE filesystem for testing IO testing errors?
IO Errors paths in applications are rarely tested, and it would help
testing to have a configurable filesystem that would produce errors like
EIO at random.
Some kind of local filesystem loopback would be useful. It
would mirror files from a "/local/path", and then cause random errors
for files specified in an "error.conf" file.
$ errorfs error.conf /local/path /fuse/path
"error.conf" would list filenames with error probabilities and broken
Heikki Orsila Barbie's law:
heikki.orsila@... "Math is hard, let's go shopping!"
From: Martin Scharrer <martin@sc...> - 2007-12-10 21:37:08
On Saturday 08 December 2007, Heikki Orsila wrote:
> Some kind of local filesystem loopback would be useful. It
> would mirror files from a "/local/path", and then cause random errors
> for files specified in an "error.conf" file.
There is/are local filesystem loopback FS(s). I don't renember the name of
the one I know. Just search the archive of the ML.
The error probabilities could be added quite easily, I think.
Just add something something like:
in the apopriate functions.
You need of course an hash of filenames with the probabilities build out of
the errorfs.conf and a 'throwdice' function.
Get latest updates about Open Source Projects, Conferences and News.