freebsd-nq/sbin/fsck_ifs
Adrian Chadd 333ec30d71 Quoting from the email thrown around between kirk, bde and iedowse@..
<QUOTE>
Overflow of cg_niblk causes spurious "SUMMARY INFORMATION BAD" warnings
prompts in fsck_ffs.  cg_niblk has type int16_t, but it is (ab)used
to hold the number of inodes per group (it has nothing to do with the
number of inode blocks in the cg as claimed in ffs/fs.h), and there
can be lots of inodes per group.  E.g.,

    newfs -i 8192 -b 16384 -f 16384 -c 255 ...

gives 0xA900 inodes/group.  Assignment of this to cg_niblk gives
-0x5700.  This is mostly harmless (ufs/ffs doesn't use cg_niblk, and
bug-for-bug compatible overflow occurs in newfs), but in
fsck_ffs/pass5.c, negative values of cg_niblk limit cg_irotor to 0
and the summary info appears to be bad.
</QUOTE>

Submitted by:	Bruce Evans <bde@zeta.org.au>
Obtained from:	Kirk McKusick <mckusick@mckusick.com>
2001-03-31 15:19:58 +00:00
..
dir.c If the lost+found directory is created by fsck, it will do a cacheino() 2000-07-24 19:50:20 +00:00
fsck_ifs.8 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
fsck.h Reviewed by: rwatson, bp 2000-10-09 08:26:35 +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 Make a tighter test for valid inode numbers in getnextinode(). 2000-07-15 18:28:36 +00:00
main.c Pre-IFS commit. Commit IFS-aware fsck and mount utilities. 2000-10-14 02:44:56 +00:00
Makefile Pre-IFS commit. Commit IFS-aware fsck and mount utilities. 2000-10-14 02:44:56 +00:00
pass1.c Ensure that block and character devices as well as fifo's and sockets 2000-07-12 06:19:22 +00:00
pass1b.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
pass2.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
pass3.c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
pass4.c Pre-IFS commit. Commit IFS-aware fsck and mount utilities. 2000-10-14 02:44:56 +00:00
pass5.c Quoting from the email thrown around between kirk, bde and iedowse@.. 2001-03-31 15:19:58 +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 Some missed magic in the fsck wrapper commit which is required by other 2000-10-09 09:21:04 +00:00