Date: Thu, 22 May 2003 21:54:22 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Doug Barton <dougb@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/newfs mkfs.c Message-ID: <20030522185422.GA51941@sunbay.com> In-Reply-To: <200305221838.h4MIcsnQ058981@repoman.freebsd.org> References: <200305221838.h4MIcsnQ058981@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <l.ertl@univie.ac.at> > 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030522185422.GA51941>