Skip to contentSkip to conversation

Corrupted/unreadable journal: reiser vs. ext3

DISCUSSION Dirk Schenkewitz 1 participant 1 message Feb 12, 2003

lore
Share & tools
lore
#0 lore raw

Oleg Drokin wrote (in response to Anders Widman):

Quoted 14 lines
Quoted 12 lines
Quoted 11 lines

So it would be possible to do some actions to
1) get some blocks back in the described way,
1.1) write to really bad blocks should have remaped them
already here if there is a space in remap area
2) save bad blocks to badblock list in fs if they are still bad - out of remap area.
Would be not bad to try to recover in this way already remapped blocks - do not know how to get the list of them only. Ok, but what if the IO error you got is not a bad block, but a bad cable? Do you want the fs to work in the described way? Trying to fix all automatically? I am not sure.

Quoted 1 line

How about trial and (then) error? :)

Quoted 7 lines

That might be suitable for fsck, but not for kernel I am sure. Kernel should just probably return error or try to use different block (if it was doing write) and if certain number of attempts failed, return error too.
Also remount R/O if write error is in system area (journal, superblock, bitmaps) or special mount option was given that demands remounting R/O on io errors.

I still feel that the system area should be DESIGNED to be extra- robust against everything, because it is vital for the whole fs. Btw, might such thoughts be the reason that ext2 has superblock backups? I agree that a bad block in the system area is a good reason for all kinds of alarm, but a really good fs should overcome more than one without (unrecoverable) damage to the fs in whole.

happy coding
dirk

Signature · 6 lines
Dirk Schenkewitz 

InterFace AG                 fon: +49 (0)89 / 610 49 - 126
Leipziger Str. 16            fax: +49 (0)89 / 610 49 - 83
D-82008 Unterhaching         
http://www.interface-ag.de   mailto:[email protected]