cvs commit: src/sbin/newfs mkfs.c

Ruslan Ermilov ru at FreeBSD.org
Thu May 22 11:54:31 PDT 2003


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
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sbin/newfs           mkfs.c 
>   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.
>   
>   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 causing
>   fsck's that are not UFS2 aware to generate the "SEARCH FOR ALTERNATE
>   SUPER-BLOCK FAILED" message, and exit without damaging the fs.
>   
>   PR:             bin/51619
>   Submitted by:   Lukas Ertl <l.ertl at univie.ac.at>
>   Reviewed by:    kirk
>   Approved by:    re (scottl)
>   
>   Revision  Changes    Path
>   1.77      +24 -0     src/sbin/newfs/mkfs.c

-- 
Ruslan Ermilov		Sysadmin and DBA,
ru at sunbay.com		Sunbay Software AG,
ru at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20030522/2cd93819/attachment.bin


More information about the cvs-src mailing list