freebsd-dev/sbin
scottl ab03aa9261 3 important fixes for growfs:
1) ginode() is passed a cylinder group number and inode number.  The inode
number is relative to the cg.  Use this relative number rather than the
absolute inode number when searching the cg inode bitmap to see if the inode
is allocated.  Using the absolute number quickly runs the check off the end
of the array and causes invalid inodes to be referenced.

2) ginode() checks the absolute indoe number to make sure that it is greater
than ROOTINO.  However, the caller loops through all of the possible inode
numbers and directly passes in values that are < ROOTINO.  Instead of halting
the program with an error, just return NULL.

3) When allocating new cylinder groups, growfs was initializing all of the
inodes in the group regardless of this only being required for UFS1.  Not
doing this for UFS2 provides a significant performance increase.

These fixes allow growing a filesystem beyond a trivial amount and have
been tested to grow an 8GB filesystem to 1.9TB.  Much more testing would
be appreciated.

Obtained from: Sandvine, Inc.
2004-10-09 02:53:47 +00:00
..
adjkerntz Invoke tzset(3) within the main loop to catch changes to /etc/localtime 2004-04-27 14:43:03 +00:00
atacontrol Distinguish between TCQ and NCQ type of tagged queing. 2004-09-15 11:22:05 +00:00
atm Add support for the examination and modification of the devices. 2004-08-12 12:31:43 +00:00
badsect Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
bsdlabel The disk labels generated by bsdlabel can no address more than 2004-09-09 07:46:53 +00:00
camcontrol Deal with double whitespace. 2004-07-03 00:13:43 +00:00
ccdconfig Deal with double whitespace. 2004-07-03 00:13:43 +00:00
clri Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
comcontrol Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
conscontrol Note that conscontrol set and unset are an interface for TIOCCONS. 2004-06-18 20:06:04 +00:00
devd mdoc(7) fixes. 2004-07-07 19:57:16 +00:00
devfs Typedefing an array of incomplete structs is non-standard C code. 2004-06-02 23:02:31 +00:00
dhclient style.Makefile(5): 2004-02-23 20:25:27 +00:00
dmesg Don't add integers to void pointers. 2004-10-03 15:48:32 +00:00
dump Avoid casts as lvalues. 2004-07-28 05:59:22 +00:00
dumpfs Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
dumpon Promote mediasize and physmem to uintmax_t when comparing them. 2004-10-04 06:54:19 +00:00
fdisk Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
fdisk_pc98 Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
ffsinfo Assign the result of getopt() to an int rather than to a char (which is 2004-07-26 15:04:57 +00:00
fsck Deal with double whitespace. 2004-07-03 00:13:43 +00:00
fsck_ffs Eliminate linked list used to track inodes with an initial link 2004-10-08 20:44:47 +00:00
fsck_msdosfs Assorted markup, grammar, and spelling fixes. 2004-05-17 08:35:43 +00:00
fsdb Downgrade WARNS level until GCC 3.4.2 warning are fixed. 2004-07-28 06:00:09 +00:00
fsirand Avoid casts as lvalues. 2004-07-28 05:59:22 +00:00
gbde Fix a type bug which sometimes wrote unusable lock sectors on the disk. 2004-09-10 12:16:54 +00:00
geom Embellish the man page after trying to migrate to gstripe from ccd(4). 2004-09-26 17:29:09 +00:00
ggate Fix a deadlock in ggatel(8) simlar to one which was fixed some time 2004-10-02 16:58:33 +00:00
gpt Document the remove command. 2004-08-07 07:52:31 +00:00
growfs 3 important fixes for growfs: 2004-10-09 02:53:47 +00:00
gvinum Allow 'create <filename>'. 2004-08-04 00:23:00 +00:00
idmapd Markup nits. 2004-05-17 21:05:39 +00:00
ifconfig Use a spare byte in struct if_data to store the structure size without 2004-09-01 18:22:14 +00:00
init Turns out that revision 1.52 was a bad idea. It broke the long 2004-09-28 04:22:55 +00:00
ip6fw Make lookup_host function invocation parameter match its prototype. 2004-07-29 18:04:06 +00:00
ipf style.Makefile(5): 2004-02-23 20:25:27 +00:00
ipfs style.Makefile(5): 2004-02-23 20:25:27 +00:00
ipfstat style.Makefile(5): 2004-02-23 20:25:27 +00:00
ipfw Reference altq(4) instead of pf.conf(5). 2004-10-08 03:31:09 +00:00
ipmon style.Makefile(5): 2004-02-23 20:25:27 +00:00
ipnat style.Makefile(5): 2004-02-23 20:25:27 +00:00
kldconfig Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror) 2004-03-05 08:10:19 +00:00
kldload Use __FBSDID() to quiet GCC 3.3 warnings. 2003-05-03 18:41:59 +00:00
kldstat Use a better way to calculate POINTER_WIDTH suggested by pjd@. 2004-05-30 10:10:41 +00:00
kldunload Give kldunload a -f(orce) argument. 2004-07-13 19:36:59 +00:00
ldconfig Avoid using void pointers in additive expressions. 2004-08-14 17:46:10 +00:00
mca style.Makefile(5): 2004-02-23 20:25:27 +00:00
md5 mdoc(7) fixes. 2004-07-07 19:57:16 +00:00
mdconfig - Make md(4) 64-bit clean. 2004-09-16 21:32:13 +00:00
mdmfs Assorted markup, grammar, and spelling fixes. 2004-05-17 08:35:43 +00:00
mknod Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
mksnap_ffs Style nit in previous commit. 2004-01-27 19:28:13 +00:00
mount Assorted markup, grammar, and spelling fixes. 2004-05-17 08:35:43 +00:00
mount_autofs WARNS=4 safe. 2004-09-12 07:06:48 +00:00
mount_cd9660 Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
mount_ext2fs Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
mount_hpfs style.Makefile(5): 2004-02-23 20:25:27 +00:00
mount_msdosfs Correct a style bug: remove a gratuitous space between ( and ". 2004-08-31 05:19:57 +00:00
mount_nfs Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
mount_nfs4 Markup nits. 2004-05-17 21:24:06 +00:00
mount_ntfs Include <sys/linker.h> for kldload(). 2004-05-24 13:39:06 +00:00
mount_nullfs Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
mount_std Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
mount_udf Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
mount_umapfs Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
mount_unionfs Mention the vfs.usermount sysctl. 2004-07-18 01:51:59 +00:00
natd Give natd multi-instance capabilities. 2004-07-04 12:53:54 +00:00
newfs Fix '-s' option for large disks and fix printing maximum file system size. 2004-09-19 10:01:51 +00:00
newfs_msdos Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
nfsiod Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
nos-tun Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
pfctl Remove -I from CFLAGS. This splipped in with the 3.5 import (as I was 2004-10-03 06:19:22 +00:00
pflogd Commit userland part of pf version 3.5 from OpenBSD (OPENBSD_3_5_BASE). 2004-06-16 23:39:33 +00:00
ping o Store timestamp in network byte order. 2004-09-30 07:35:56 +00:00
ping6 re-enabled Rev 1.15 (lost during KAME merge at Rev 1.25, due to a KAME bug...) 2004-07-26 08:18:37 +00:00
quotacheck Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
rcorder Deal with harmful leading whitespace. 2004-07-02 18:37:52 +00:00
reboot Fixed desctiptions of some options: 2004-09-30 09:59:44 +00:00
recoverdisk Only print progress statistics once per second. 2004-10-08 10:50:40 +00:00
restore Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
route Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
routed Don't declare everything we find on a loopback interface for passive: 2004-08-14 08:36:35 +00:00
rtsol style.Makefile(5): 2004-02-23 20:25:27 +00:00
savecore Use a local "compress" symbol corresponding to a variable in BSS, 2004-08-16 07:02:14 +00:00
sconfig Clean up language. 2004-05-20 16:40:06 +00:00
setkey Reapply traditionally lost fixes, fixed some more. 2004-06-05 20:22:15 +00:00
shutdown Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
slattach Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
spppcontrol Mechanically kill hard sentence breaks. 2004-07-02 21:45:06 +00:00
startslip - Signal handlers must have an int argument. 2004-08-02 08:10:28 +00:00
sunlabel Fix indentation of continuation lines to (hopefully) comply with 2004-06-18 15:08:08 +00:00
swapon Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
sysctl Use correct format string. 2004-09-17 17:08:44 +00:00
tunefs Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
umount Remove advertising clause from University of California Regent's license, 2004-04-09 19:58:40 +00:00
vinum Fix potential buffer overflow. 2004-07-24 19:11:40 +00:00
Makefile Hook mount_autofs to the build. 2004-09-12 01:25:47 +00:00
Makefile.inc Now that we have gcc 3.4, we can flip ia64 to using a dynamically linked 2004-08-06 00:07:26 +00:00