Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2003 23:25:02 +0200 (CEST)
From:      Lukas Ertl <l.ertl@univie.ac.at>
To:        Kirk McKusick <mckusick@beastie.mckusick.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: bin/51619 
Message-ID:  <20030508232159.A789@leelou.in.tern>
In-Reply-To: <200305082047.h48KlDTh026805@beastie.mckusick.com>
References:  <200305082047.h48KlDTh026805@beastie.mckusick.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 8 May 2003, Kirk McKusick wrote:

> Your proposed patch would work much better. There is a small
> possibility that it would stomp a boot block that just happened
> to have the filesystem magic number at that location, but the
> chances of that seem pretty remote. It does not address the
> alternate superblock issue. The first UFS1 alternate is 32
> sectors (16K) in from the beginning of the disk. That alternate
> also remains untouched by UFS2. So, someone manually running
> fsck will be given the opportunity to look for alternate
> superblocks and will find that one and *still* end up messing
> up the filesystem.

Well, Unix always gives you enough rope to hang yourself :-)

> Indeed to be completely safe, you would need to look up every alternate
> superblock and zero out its magic number (see the last for-loop in
> mkfs() for details on how this is done).

Ok Kirk, thanks for your patience so far. I'm trying to come up with an
extended patch tomorrow.

best regards,
le

--=20
Lukas Ertl                             eMail: l.ertl@univie.ac.at
UNIX-Systemadministrator               Tel.:  (+43 1) 4277-14073
Zentraler Informatikdienst (ZID)       Fax.:  (+43 1) 4277-9140
der Universit=E4t Wien                   http://mailbox.univie.ac.at/~le/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030508232159.A789>