From owner-cvs-src@FreeBSD.ORG Thu May 22 11:54:31 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F5B937B401; Thu, 22 May 2003 11:54:31 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95B6143FAF; Thu, 22 May 2003 11:54:27 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h4MIsMEd054756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 22 May 2003 21:54:23 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h4MIsMbV054751; Thu, 22 May 2003 21:54:22 +0300 (EEST) (envelope-from ru) Date: Thu, 22 May 2003 21:54:22 +0300 From: Ruslan Ermilov To: Doug Barton Message-ID: <20030522185422.GA51941@sunbay.com> References: <200305221838.h4MIcsnQ058981@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: <200305221838.h4MIcsnQ058981@repoman.freebsd.org> User-Agent: Mutt/1.5.4i cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/newfs mkfs.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2003 18:54:31 -0000 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable At last! Thank you! On Thu, May 22, 2003 at 11:38:54AM -0700, Doug Barton wrote: > dougb 2003/05/22 11:38:54 PDT >=20 > FreeBSD src repository >=20 > Modified files: > sbin/newfs mkfs.c=20 > Log: > When newfs'ing a partition with UFS2 that had previously been newfs'ed > with UFS1, the UFS1 superblocks were not deleted. This allowed any > RELENG_4 (or other non-UFS2-aware) fsck to think it knew how to "fix" > the file system, resulting in severe data scrambling. > =20 > This patch is a more advanced version than the one originally submitted. > Lukas improved it based on feedback from Kirk, and testing by me. It > blanks all UFS1 superblocks (if any) during a UFS2 newfs, thereby causi= ng > fsck's that are not UFS2 aware to generate the "SEARCH FOR ALTERNATE > SUPER-BLOCK FAILED" message, and exit without damaging the fs. > =20 > PR: bin/51619 > Submitted by: Lukas Ertl > Reviewed by: kirk > Approved by: re (scottl) > =20 > Revision Changes Path > 1.77 +24 -0 src/sbin/newfs/mkfs.c --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+zRzeUkv4P6juNwoRAq2PAJ0c2gHsFPHo9xD4GoWRg5Hfef79agCfeqsv r2RWMkfXE6MZajaCtKmV0TA= =l31k -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv--