Displaying 1 result from an estimated 1 matches for "ext3_wait_for_readon".
Did you mean:
ext3_wait_for_readonly
2001 May 17
0
Fwd: ext3 for 2.4
...vice immutable.
It does this by setting a flag which is tested in submit_bh().
For WRITE requests submit_bh() will simply call
bh_end_io(uptodate=1) and return.
There's a new ext3 ioctl() which will block the caller until the
device has gone readonly. I semi-randomly chose
#define EXT3_WAIT_FOR_READONLY _IOR('w', 1, long)
The intent here is that a controlling script will:
1: Mount the fs with ro-after=1000 (Ten seconds)
2: Start a test script (eg: dbench)
3: Block on the wait-for-readonly ioctl
4: wake up when the disk has "crashed"
5: Kill off the test script...