Subject: Re: mkfs should clear possible alternate superblocks
To: David Laight <email@example.com>
From: Frank van der Linden <firstname.lastname@example.org>
Date: 09/10/2003 15:32:21
On Wed, Sep 10, 2003 at 02:41:28PM +0100, David Laight wrote:
> At the moment newfs only writes the part of the disk that contains
> the red tape for the new filesystem. Unfortunately this doesn't
> guarantee that it will overwrite the red tape from an older filesystem.
> In particular it is important that the old superblock and the first
> alternate (which is in one of a few 'well known' locations is invalidated.
> Failure to do so can lead the the wrong fsck being run, or the wrong
> filesystem type being mounted.
I agree. This issue crossed my mind when I integrated the UFS2 code,
but I forgot about it. Thanks for picking it up.
Frank van der Linden email@example.com
NetBSD. Free, Unix-like OS. > 45 different platforms. http://www.netbsd.org/