freebsd-skq/sbin
gavin bea1844152 When growing a UFS1 filesystem, we need to initialise all inodes in any new
cylinder groups that are created.  When the filesystem is first created,
newfs always initialises the first two blocks of inodes, and then in the
UFS1 case will also initialise the remaining inode blocks.  The changes in
growfs.c 1.23 broke the initialisation of all inodes, seemingly based on
this implementation detail in newfs(8).  The result was that instead of
initialising all inodes, we would actually end up initialising all but the
first two blocks of inodes.  If the filesystem was grown into empty
(all-zeros) space then the resulting filesystem was fine, however when
grown onto non-zeroed space the filesystem produced would appear to have
massive corruption on the first fsck after growing.
A test case for this problem can be found in the PR audit trail.

Fix this by once again initialising all inodes in the UFS1 case.

PR:		bin/115174
Submitted by:	Nate Eldredgei  nge cs.hmc.edu
Reviewed by:	mjacob
MFC after:	1 month
2010-02-13 16:22:08 +00:00
..
adjkerntz Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
atacontrol MFp4: 2009-12-06 00:10:13 +00:00
atm Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
badsect Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
bsdlabel Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
camcontrol - Give ATA/SATA SIMs info about ATAPI packet size, supported by device. 2010-02-02 11:09:28 +00:00
ccdconfig Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
clri Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
comcontrol ANSIfy almost all applications that use WARNS=6. 2009-12-29 22:53:27 +00:00
conscontrol Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ddb Ensure 'kvm' is always initialized. If "-M" was not specified and the 2009-11-02 20:18:50 +00:00
devd o Spell. Sort .Xrs. 2009-03-08 18:02:30 +00:00
devfs Support for filtering on major device number was removed in rev. 1.7 or 2008-06-27 09:09:50 +00:00
dhclient Make dhclient use bootpc (68) as the source port for unicast DHCPREQUEST 2009-10-21 23:50:35 +00:00
dmesg Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
dump Plug two memory leaks in error case. 2010-02-03 23:56:12 +00:00
dumpfs Print leading zeros in the UFS2 FSID. 2010-01-06 14:01:28 +00:00
dumpon Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
fdisk - Back out the previous change in order to maintain compatibility. 2009-06-17 06:41:10 +00:00
fdisk_pc98 Use the common PC98_SID_ACTIVE define instead of a local define. 2009-03-19 12:31:59 +00:00
ffsinfo Don't coredump when executed with -o. 2008-01-29 00:20:00 +00:00
fsck Fix minor resource leak in a function which was introduced by changing an 2009-11-20 15:27:00 +00:00
fsck_ffs Cast 64-bit quantity to intptr_t rather than int so as to work properly 2010-01-11 23:33:30 +00:00
fsck_msdosfs fsck_msdosfs: accept no-op -C option for compatibilty with fsck 2009-06-10 19:02:54 +00:00
fsdb Update after function renames. 2006-10-31 22:07:29 +00:00
fsirand
gbde Remove temporary files when there are no longer needed. 2007-04-06 11:16:11 +00:00
geom Add the long missing "destroy" option. 2010-02-04 21:51:33 +00:00
ggate (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument. 2009-12-28 22:56:30 +00:00
growfs When growing a UFS1 filesystem, we need to initialise all inodes in any new 2010-02-13 16:22:08 +00:00
gvinum Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ifconfig Shortening a passphrase caused wrong authentication key to be used. 2010-02-04 11:43:22 +00:00
init Remove stale inclusion of <ulog.h>. 2010-01-27 20:32:58 +00:00
ipf Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ipfw implement a new match option, 2009-12-15 09:46:27 +00:00
iscontrol pukeText is an internal function so define it as static rather than 2010-02-03 23:58:00 +00:00
kldconfig Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
kldload Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
kldstat Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
kldunload Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ldconfig ANSIfy ldconfig and the aout bits it still uses from rtld-aout. 2009-12-29 21:07:17 +00:00
mca Markup nit. 2006-09-30 11:12:36 +00:00
md5 Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mdconfig Make mdconfig(8) WARNS=6 clean: 2010-01-22 08:51:58 +00:00
mdmfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mknod Allow mknod(8) to be only invoked with a pathname as an argument. 2010-01-31 11:48:25 +00:00
mksnap_ffs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount - Remove reference to nfs4. mount_nfs4(8) was removed in r192578. 2010-02-10 16:18:28 +00:00
mount_autofs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_cd9660 Fix minor memory leak in a function. 2009-11-20 15:28:38 +00:00
mount_ext2fs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_hpfs
mount_msdosfs Remove reference to the bug in FreeBSD 2.0. 2010-01-02 17:45:53 +00:00
mount_nfs Introduce '[ipaddr]:path' notation. 2010-02-04 15:17:49 +00:00
mount_ntfs Tone down warning about the quality of the NTFS VFS module. It appears that 2009-01-20 02:08:21 +00:00
mount_nullfs ANSIfy almost all applications that use WARNS=6. 2009-12-29 22:53:27 +00:00
mount_reiserfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_std Reduce the number of errors under WARNS=6 2006-09-13 04:50:44 +00:00
mount_udf style.Makefile(5): Remove -Wall from CFLAGS. 2006-07-17 20:53:25 +00:00
mount_unionfs Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
natd Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
newfs One last pass to get all the unsigned comparisons correct. 2010-02-11 18:14:53 +00:00
newfs_msdos Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
nfsiod - Display current settings when run without options. 2009-12-26 08:36:02 +00:00
nos-tun
pfctl Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
pflogd Let pflogd's Makefile just use WARNS instead of changing CFLAGS. 2009-04-23 09:11:37 +00:00
ping - improve readability 2009-01-11 22:36:45 +00:00
ping6 Implement -R support, similar to ping(8)'s -A. 2008-08-27 15:01:23 +00:00
quotacheck Drag this code kicking and screaming into the twenty-first century. 2008-07-02 15:51:59 +00:00
rcorder ANSIfy almost all applications that use WARNS=6. 2009-12-29 22:53:27 +00:00
reboot Remove stale references to utmp(5) and its corresponding filenames. 2010-01-21 17:25:12 +00:00
recoverdisk Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
restore Don't try to determine tape block size when the -P option is used. 2010-02-13 10:22:07 +00:00
route remove stale references to RTF_CLONING and RTF_LLINFO 2009-09-04 18:52:26 +00:00
routed (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument. 2009-12-28 22:56:30 +00:00
rtsol Add eye candy while I'm here: a blank line between 2006-07-27 18:28:14 +00:00
savecore Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
sconfig Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
setkey Use the newly brought %U macro. 2010-01-15 16:01:22 +00:00
shutdown Add missing `void' for functions without arguments. 2009-12-29 08:49:43 +00:00
spppcontrol Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
sunlabel
swapon Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
sysctl Add -i to usage() 2010-02-09 19:13:45 +00:00
tunefs Quiet spurious warnings. 2010-02-11 06:33:35 +00:00
umount Introduce '[ipaddr]:path' notation. 2010-02-04 15:17:49 +00:00
Makefile Remove the unmaintained University of Michigan NFSv4 client from 8.x 2009-05-22 12:35:12 +00:00
Makefile.inc Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00