Any way to simulate a disk read or write error?
From: Eric Taylor (et1_at_rocketship1.com)
Date: 07/16/04
- Previous message: Csaba Henk: "APM problems"
- Next in thread: Norm Dresner: "Re: Any way to simulate a disk read or write error?"
- Reply: Norm Dresner: "Re: Any way to simulate a disk read or write error?"
- Reply: Kasper Dupont: "Re: Any way to simulate a disk read or write error?"
- Reply: P.T. Breuer: "Re: Any way to simulate a disk read or write error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 16 Jul 2004 00:11:28 GMT
I need to do some robustness checking on programs that read
and write very large files. Is there any way to have a linux disk
device return an error on request? Some /proc entry maybe?
Either by specifying a file or an area on the disk itself, just
so long as I could map it into a file I am going to be reading.
I tried filling up the disk to check the write code, but even
that didn't always work. Sometimes the system would
just keep going even though there shouldn't have been any
disk space left. And this only checks one kind of error.
20 years back, in an O.S. far far away, we had some virtual
disk drivers with this feature. It was much easier than taking
a screwdriver to the hard drive. Naturally, the O.S. provider
didn't like this, because it could cause the file system to croak.
But if we were careful, we were able to validate our error recovery code.
thanks
eric
- Previous message: Csaba Henk: "APM problems"
- Next in thread: Norm Dresner: "Re: Any way to simulate a disk read or write error?"
- Reply: Norm Dresner: "Re: Any way to simulate a disk read or write error?"
- Reply: Kasper Dupont: "Re: Any way to simulate a disk read or write error?"
- Reply: P.T. Breuer: "Re: Any way to simulate a disk read or write error?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|