freebsd-skq/sbin
nate 71859c694b From: Terry Lambert <terry@lambert.org>
Subject: Fix for annoying fsck bug
Date: Wed, 24 Jan 1996 13:33:29 -0700 (MST)

The following small diff fixes the annoying fsck bug that causes it to
need to be run twice to end up with correct reference counts for inodes
for directories that had subdirectories relocated into the lost+found
directory.

I found the need to rerun *extremely* annoying.  This fix causes the
count to be correctly adjusted later in pass 4 by correctly stating
the parent reference count.

Note that the parent reference count is incremented when the directory
entry is made (for ".."), but is not really there in the case of a
directory that does not make an entry in its parent dir.

This can be tested by waiting for the inode sync after cd'ing from a
shell into a test fs.  Then you "mkdir xxx yyy zzz", wait a second,
and hit the machine reset button.

Reviewed by:	nate (Tested lots of crashes :)
Submitted by:	Terry Lambert <terry@lambert.org>
1996-05-09 16:38:27 +00:00
..
adjkerntz English corrections from jdp. 1996-04-09 11:31:34 +00:00
badsect Submitted by: Philippe Charnier <charnier@lirmm.fr>, added to by bde 1995-04-02 16:52:14 +00:00
bsdlabel Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
ccdconfig Add CCDF_MIRROR and CCDF_PARITY to list of flags. 1996-01-31 11:04:52 +00:00
clri removed xref to icheck(8), ncheck(8) as they don't exist 1996-04-11 07:49:34 +00:00
comcontrol Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
cxconfig This upgrades the driver for Cronyx-Sigma multiplexor boards 1995-10-04 22:24:16 +00:00
disklabel Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
dmesg Add setlocale LC_CTYPE 1995-10-23 23:36:55 +00:00
dset Stupid bug, the default man page goes to section 1, not 8. 1996-05-03 18:09:06 +00:00
dump Put the superfluous "DUMP:" back in the statistics line, to make 1995-12-23 11:53:56 +00:00
dumpfs Corrected message when no rotational position table is found. 1994-10-01 16:53:53 +00:00
dumplfs Fixed a type to match Lite2's fixed-width type changes. 1996-03-19 14:41:05 +00:00
dumpon Fixed some minor formatting problems to silence manck some more. 1996-02-12 01:20:38 +00:00
fdisk Fix even more spelling errors in some more man pages. 1996-01-30 16:34:52 +00:00
fsck From: Terry Lambert <terry@lambert.org> 1996-05-09 16:38:27 +00:00
fsck_ffs From: Terry Lambert <terry@lambert.org> 1996-05-09 16:38:27 +00:00
fsck_ifs From: Terry Lambert <terry@lambert.org> 1996-05-09 16:38:27 +00:00
fsdb Adjust relative paths in Makefile to ../sbin/fsck and ../../sys/ufs/ffs 1995-11-24 23:12:00 +00:00
i386 Add a small message to the ``CAVEATS'' section saying if you get the 1996-04-03 23:11:08 +00:00
ifconfig XNS sort-of-support is no more. 1996-02-13 17:30:37 +00:00
init Better method of choosing libdescrypt/libscrypt. 1996-05-04 08:16:20 +00:00
ipfw recognize "allow", "accept" and "pass" 1996-04-03 13:49:10 +00:00
ldconfig Correct some man page xrefs, and some other minor changes to bring some 1996-04-08 04:18:31 +00:00
md5 Fix to match new API. Fixes memory leak, faster. 1995-07-12 09:14:46 +00:00
mknod Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
modload changed a strchr to a strrchr so that modules with a `.' in the path 1996-04-26 18:39:48 +00:00
modunload fix a reference in "SEE ALSO" (modunload(8) mistakenly references 1995-10-26 21:44:11 +00:00
mount Change the messages slightly when there is no "mount_type" executable 1996-03-15 00:14:09 +00:00
mount_cd9660 Include the special device in the error output so that it makes sense. 1995-02-15 14:29:26 +00:00
mount_devfs Obtained from: copied fro mount_kernfs 1995-04-21 01:17:50 +00:00
mount_ext2fs Hacked up a small man page for mount_ext2fs. The existing man page was 1996-01-31 17:28:23 +00:00
mount_fdesc Add support for filesystem-specific `-o' options, and re-implement the 1994-11-01 23:51:53 +00:00
mount_ifs Change the messages slightly when there is no "mount_type" executable 1996-03-15 00:14:09 +00:00
mount_kernfs Add support for filesystem-specific `-o' options, and re-implement the 1994-11-01 23:51:53 +00:00
mount_lfs Add support for filesystem-specific `-o' options, and re-implement the 1994-11-01 23:51:53 +00:00
mount_msdos Add a small message to the ``CAVEATS'' section saying if you get the 1996-04-03 23:11:08 +00:00
mount_msdosfs Add a small message to the ``CAVEATS'' section saying if you get the 1996-04-03 23:11:08 +00:00
mount_nfs #include <kerberosIV/des.h> -> #include <des.h> 1996-02-11 09:18:18 +00:00
mount_null Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
mount_nullfs Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
mount_portal Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
mount_portalfs Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
mount_procfs Add support for filesystem-specific `-o' options, and re-implement the 1994-11-01 23:51:53 +00:00
mount_umap Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
mount_umapfs Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
mount_union Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
mount_unionfs Another round of various man page cleanups. 1996-02-09 17:25:57 +00:00
mountd Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
newfs man page link tmpfs.8 -> mfs.8 for former SunOS users 1996-02-02 06:31:57 +00:00
newlfs Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
nfsd Default to udp if neither udp nor tcp is specified. The previous revision 1996-05-01 03:13:45 +00:00
nfsiod Catch the case where the children can die too soon causing wait3() 1995-10-01 03:23:13 +00:00
nologin Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
ping Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
quotacheck Silence some cc -Wall warnings in quotacheck. 1996-02-27 08:04:48 +00:00
rdisc Correct a bunch of man page cross references and generally 1996-02-11 22:38:05 +00:00
reboot Removed the boot_*(8) man pages for machines we don't support: 1996-02-12 04:29:10 +00:00
restore Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
route Update route(8) to print out current meanings of rt_flags RTF_* bits. 1996-05-08 20:48:59 +00:00
savecore NBPG -> getpagesize() 1996-05-02 09:09:04 +00:00
scsi Don't immediately give up if a single read() or write() wasn't 1996-04-06 11:00:28 +00:00
scsiformat Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
shutdown Delete bogus referneces to timezone code internal header file `tzfile.h', 1995-08-07 19:17:46 +00:00
slattach Properly distinguish 3 different cases: 1996-03-12 23:14:45 +00:00
startslip Fixed a couple of format strings to match the change of pid_t from long 1996-04-13 15:47:43 +00:00
swapon Take out special error message for EINVAL...we really do want it to be 1995-05-14 02:18:18 +00:00
sysctl Fix a core dump when the user gives "-w" without an "=" 1996-04-10 00:53:22 +00:00
tunefs Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
umount Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
Makefile Connect ccd man page and ccdconfig to parent Makefiles. 1996-05-04 08:30:22 +00:00
Makefile.inc Split CRYPTOBJDIR -> SCRYPTOBJDIR/DESCRYPTOBJDIR for init(8) 1996-05-04 08:11:47 +00:00