
On Mon 21-07-14 15:10:42, Greg Freemyer wrote: ...
The trouble is you have permanently lost whatever that sector used to hold. I know of no way general way to get it back. After you repair the sector, you should try to figure what file / inode / metadata the sector was associated with and try to fix things back up. If the sector is a part of a files data page, the simplist thing is just to delete the file and get a replacement copy from backup.
For the kernel team, this brings up the question if XFS CRC metadata correction is going to be in openSUSE 13.2? If so, does the new XFS code have a way to force a write of the corrected data back to disk? XFS has a CRC feature and it will be part of openSUSE 13.2 (at least kernel and xfsprogs will support it - but note that the ondisk format changes so you'll have to create filesystem from scratch). But XFS uses that feature only to detect issues - find out sector has garbage instead of real data. There is no plan (AFAIK) to use CRC's to recover anything and in fact the CRC's used are weak for anything like that. IHMO when you want to restore anything after a sector failure, you should be using RAID...
Honza -- Jan Kara <jack@suse.cz> SUSE Labs, CR -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org