freebsd-src/sbin
Ian Dowse f55ff3f3ef The ffs superblock includes a 128-byte region for use by temporary
in-core pointers to summary information. An array in this region
(fs_csp) could overflow on filesystems with a very large number of
cylinder groups (~16000 on i386 with 8k blocks). When this happens,
other fields in the superblock get corrupted, and fsck refuses to
check the filesystem.

Solve this problem by replacing the fs_csp array in 'struct fs'
with a single pointer, and add padding to keep the length of the
128-byte region fixed. Update the kernel and userland utilities
to use just this single pointer.

With this change, the kernel no longer makes use of the superblock
fields 'fs_csshift' and 'fs_csmask'. Add a comment to newfs/mkfs.c
to indicate that these fields must be calculated for compatibility
with older kernels.

Reviewed by:	mckusick
2001-01-15 18:30:40 +00:00
..
adjkerntz Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
atm Add `_PATH_DEVZERO'. 2000-12-09 09:35:55 +00:00
badsect Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
bsdlabel typo: modifes -> modifies 2000-12-28 16:44:47 +00:00
camcontrol Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ccdconfig Prepare for mdoc(7)NG. 2000-12-27 14:40:52 +00:00
clri
comcontrol Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
cxconfig Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
dhclient
disklabel typo: modifes -> modifies 2000-12-28 16:44:47 +00:00
dmesg Fix hard sentence break introduced in previous commit. 2000-12-20 13:23:50 +00:00
dump Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
dumpfs The ffs superblock includes a 128-byte region for use by temporary 2001-01-15 18:30:40 +00:00
dumpon mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
fdisk Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
fdisk_pc98 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ffsinfo Prepare for mdoc(7)NG. 2000-12-19 15:36:48 +00:00
fsck Use macro API to <sys/queue.h> 2000-12-30 21:05:45 +00:00
fsck_ffs The ffs superblock includes a 128-byte region for use by temporary 2001-01-15 18:30:40 +00:00
fsck_ifs The ffs superblock includes a 128-byte region for use by temporary 2001-01-15 18:30:40 +00:00
fsdb
fsirand Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
growfs Fix a logical bug introduced by changing the formatting. 2000-12-13 22:19:05 +00:00
i386 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ifconfig
init Further tidy up the sbin/init and release builds. 2001-01-01 21:39:00 +00:00
ip6fw Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ipf
ipfstat
ipfw o IPFW incorrectly handled filtering in the presence of previously 2001-01-09 03:10:30 +00:00
ipmon
ipnat
kget mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:20:31 +00:00
kldload Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
kldstat
kldunload
ldconfig Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
md5
mdconfig Mdoc(7)ify. 2001-01-10 14:53:46 +00:00
mknod Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
mount Retire kernfs (userland part). 2000-12-28 12:59:57 +00:00
mount_cd9660
mount_ext2fs mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
mount_hpfs
mount_ifs Retire kernfs (userland part). 2000-12-28 12:59:57 +00:00
mount_msdos
mount_msdosfs
mount_nfs
mount_ntfs mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:20:31 +00:00
mount_null Prepare for mdoc(7)NG. 2000-12-27 14:40:52 +00:00
mount_nullfs Prepare for mdoc(7)NG. 2000-12-27 14:40:52 +00:00
mount_nwfs mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
mount_portal
mount_portalfs
mount_std Retire kernfs (userland part). 2000-12-28 12:59:57 +00:00
mount_umap Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
mount_umapfs Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
mount_union
mount_unionfs
mountd Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
natd
newfs The ffs superblock includes a 128-byte region for use by temporary 2001-01-15 18:30:40 +00:00
newfs_msdos Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
nextboot mdoc(7) police: added missing .Os call. 2000-12-14 13:58:15 +00:00
nfsd
nfsiod
nologin mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
nos-tun Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
pc98 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ping Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
ping6 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
quotacheck
reboot Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
restore Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
route Add a couple of newlines in the output from route monitor 2001-01-15 12:28:48 +00:00
routed Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
rtsol
savecore
setkey Minor layout fixes. 2001-01-01 23:30:51 +00:00
shutdown mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:20:31 +00:00
slattach Prepare for mdoc(7)NG. 2000-12-27 14:40:52 +00:00
spppcontrol
startslip Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
swapon
sysctl Document the -N option in the usage message and the man page. 2001-01-14 19:08:58 +00:00
tunefs The tunefs code assumed that the last argument was the device specification. 2000-12-10 20:59:30 +00:00
umount
vinum Remove references to lockinfo.plex. 2001-01-14 11:42:19 +00:00
Makefile Add mdconfig into the build. 2000-12-28 20:59:35 +00:00
Makefile.inc