dougb 90267b2854 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@univie.ac.at>
Reviewed by:	kirk
Approved by:	re (scottl)
2003-05-22 18:38:54 +00:00
..
2003-05-17 19:06:45 +00:00
2002-07-06 19:34:18 +00:00
2003-05-17 22:21:27 +00:00
2002-12-09 13:06:34 +00:00
2003-03-25 03:16:53 +00:00
2003-05-19 19:52:29 +00:00
2003-02-23 01:47:49 +00:00
2003-03-26 01:30:34 +00:00
2003-03-25 11:27:46 +00:00
2003-04-27 01:46:56 +00:00
2002-12-27 12:15:40 +00:00
2003-05-17 22:53:44 +00:00
2003-02-05 13:50:41 +00:00
2002-07-06 19:34:18 +00:00
2003-04-16 09:53:29 +00:00
2003-05-05 22:49:23 +00:00
2003-01-08 06:43:27 +00:00
2003-05-05 22:49:23 +00:00
2003-05-17 20:40:42 +00:00