e7c4605481
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. |
||
---|---|---|
.. | ||
adjkerntz | ||
atacontrol | ||
atm | ||
badsect | ||
bsdlabel | ||
camcontrol | ||
ccdconfig | ||
clri | ||
comcontrol | ||
conscontrol | ||
devd | ||
devfs | ||
dhclient | ||
dmesg | ||
dump | ||
dumpfs | ||
dumpon | ||
fdisk | ||
fdisk_pc98 | ||
ffsinfo | ||
fsck | ||
fsck_ffs | ||
fsck_msdosfs | ||
fsdb | ||
fsirand | ||
gbde | ||
geom | ||
ggate | ||
gpt | ||
growfs | ||
gvinum | ||
idmapd | ||
ifconfig | ||
init | ||
ip6fw | ||
ipf | ||
ipfs | ||
ipfstat | ||
ipfw | ||
ipmon | ||
ipnat | ||
kldconfig | ||
kldload | ||
kldstat | ||
kldunload | ||
ldconfig | ||
mca | ||
md5 | ||
mdconfig | ||
mdmfs | ||
mknod | ||
mksnap_ffs | ||
mount | ||
mount_autofs | ||
mount_cd9660 | ||
mount_ext2fs | ||
mount_hpfs | ||
mount_msdosfs | ||
mount_nfs | ||
mount_nfs4 | ||
mount_ntfs | ||
mount_nullfs | ||
mount_std | ||
mount_udf | ||
mount_umapfs | ||
mount_unionfs | ||
natd | ||
newfs | ||
newfs_msdos | ||
nfsiod | ||
nos-tun | ||
pfctl | ||
pflogd | ||
ping | ||
ping6 | ||
quotacheck | ||
rcorder | ||
reboot | ||
recoverdisk | ||
restore | ||
route | ||
routed | ||
rtsol | ||
savecore | ||
sconfig | ||
setkey | ||
shutdown | ||
slattach | ||
spppcontrol | ||
startslip | ||
sunlabel | ||
swapon | ||
sysctl | ||
tunefs | ||
umount | ||
vinum | ||
Makefile | ||
Makefile.inc |