freebsd-skq/sbin/newfs
cperciva bbad79fbcc Stop trying to zero UFS1 superblocks if we fall off the end of the disk.
This avoids a potentially many-hours-long loop of failed writes if newfs
finds a partially-overwritten superblock (or, for that matter, random
garbage which happens to have superblock magic bytes); on one occasion I
found newfs trying to zero 800 million superblocks on a 50 MB disk.

Reviewed by:	mckusick
MFC after:	1 week
2011-04-26 02:06:31 +00:00
..
Makefile Use expand_number(3) from libutil instead of home-grown function to parse 2010-03-03 19:25:28 +00:00
mkfs.c Stop trying to zero UFS1 superblocks if we fall off the end of the disk. 2011-04-26 02:06:31 +00:00
newfs.8 Xref makefs(8). 2011-02-22 15:31:40 +00:00
newfs.c Add the -j option to enable soft updates journaling when creating 2011-02-16 06:00:27 +00:00
newfs.h Add support for FS_TRIM to user-mode UFS utilities. 2010-12-29 12:31:18 +00:00
ref.test
runtest00.sh
runtest01.sh