sdgathman / lbatofile

Map LBA of disk sector to volume and file pathname.
GNU General Public License v2.0
4 stars 2 forks source link

errors in inode table #1

Open sdgathman opened 8 years ago

sdgathman commented 8 years ago

When debugsfs icheck encounters an io error reading the inode table, it quits without outputting anything. lbatofile then gets and "invalid block" exception. This is the same icheck output as when an out of range block is supplied, but the error message written to stderr is different.

For now, I can make the error more ambiguous, like "Can't map block to inode". But it would be nice to recognize the case of io errors in inode table. Unfortunately, the bad sector in the inode table might be another bad sector, and not the one we are mapping.