From owner-freebsd-current@FreeBSD.ORG Thu May 8 14:25:18 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B59937B401; Thu, 8 May 2003 14:25:18 -0700 (PDT) Received: from mailbox.univie.ac.at (mail.univie.ac.at [131.130.1.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3C5FC43F3F; Thu, 8 May 2003 14:25:17 -0700 (PDT) (envelope-from l.ertl@univie.ac.at) Received: from localhost.localdomain (adslle.cc.univie.ac.at [131.130.102.11]) by mailbox.univie.ac.at (8.12.2/8.12.2) with ESMTP id h48LP2Rx118720; Thu, 8 May 2003 23:25:08 +0200 Date: Thu, 8 May 2003 23:25:02 +0200 (CEST) From: Lukas Ertl To: Kirk McKusick In-Reply-To: <200305082047.h48KlDTh026805@beastie.mckusick.com> Message-ID: <20030508232159.A789@leelou.in.tern> References: <200305082047.h48KlDTh026805@beastie.mckusick.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-DCC-ZID-Univie-Metrics: mailbox 4251; Body=3 Fuz1=3 Fuz2=3 cc: DougB@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: bin/51619 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 21:25:18 -0000 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/