freebsd-skq/sbin/fsck_ffs
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
..
SMM.doc Reviewed by: rwatson, bp 2000-10-09 08:26:35 +00:00
dir.c
fsck_ffs.8 Document fsck_ffs's new SIGINFO handler. 2001-01-03 13:53:48 +00:00
fsck.h Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of 2000-12-15 14:23:55 +00:00
fsutil.c The ffs superblock includes a 128-byte region for use by temporary 2001-01-15 18:30:40 +00:00
inode.c
main.c Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of 2000-12-15 14:23:55 +00:00
Makefile Some missed magic in the fsck wrapper commit which is required by other 2000-10-09 09:21:04 +00:00
pass1.c Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of 2000-12-15 14:23:55 +00:00
pass1b.c Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of 2000-12-15 14:23:55 +00:00
pass2.c Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of 2000-12-15 14:23:55 +00:00
pass3.c Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of 2000-12-15 14:23:55 +00:00
pass4.c Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of 2000-12-15 14:23:55 +00:00
pass5.c Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of 2000-12-15 14:23:55 +00:00
preen.c Reviewed by: rwatson, bp 2000-10-09 08:26:35 +00:00
setup.c The ffs superblock includes a 128-byte region for use by temporary 2001-01-15 18:30:40 +00:00
utilities.c Add a missing period and newline to a message. 2000-12-18 21:14:25 +00:00