From: Martin S. <ma...@sc...> - 2007-12-10 21:37:08
|
Hi, 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: if (throwdice(path)) return -EIO; 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. Best, Martin |