Re: [PATCH FOR REVIEW] fsck_ffs: Recover from catastrophic damage

From: Xin LI <delphij_at_delphij.net>
Date: Wed, 20 Feb 2008 01:58:36 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Leidinger wrote:
> Quoting Xin LI <delphij_at_delphij.net> (from Tue, 19 Feb 2008 23:36:04
> -0800):
> 
>> Change summary:
>>
>> fsutil.c:
>>  - Really update standard superblock.  fsck_ffs -b used to update the
>> backup superblock which does not recover file systems which have bad
>> master superblocks.
>>  - Instead of coredump, zero out whole cg if its signature is bad.
>>
>> inode.c:
>>  - Instead of coredump, zero out whole cg if its signature is bad.
> 
> Does this modify (zero out) on-disk blocks? If yes, shouldn't this ask
> for confirmation?

My assumption is that if a cylinder group's magic number is damaged,
then the whole stuff can not be trusted at all, but yes, I think this
should come with a prompt, will add tomorrow.

Cheers,
- --
Xin LI <delphij_at_delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHu/nMi+vbBBjt66ARAqN9AJ4zRi6+h0f6R062vQyuEkET32saEACguKSs
4GxuVJdwFt7bIuKlGouO5Dk=
=fMnQ
-----END PGP SIGNATURE-----
Received on Wed Feb 20 2008 - 08:58:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:27 UTC