diff options
author | dougb <dougb@FreeBSD.org> | 2003-05-22 18:38:54 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2003-05-22 18:38:54 +0000 |
commit | 90267b28544ec3e3fd9034b66e219c73c7cd4929 (patch) | |
tree | ee6ebf23e61a2664e3b5f722931833971d20d782 /usr.sbin/sade | |
parent | b95c3a4349b76514ae31bf32da8449674eb4d79c (diff) | |
download | FreeBSD-src-90267b28544ec3e3fd9034b66e219c73c7cd4929.zip FreeBSD-src-90267b28544ec3e3fd9034b66e219c73c7cd4929.tar.gz |
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)
Diffstat (limited to 'usr.sbin/sade')
0 files changed, 0 insertions, 0 deletions