freebsd-skq/sbin
Nate Williams 119e9fc298 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
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
disklabel Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
dmesg
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
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
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
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
mount Change the messages slightly when there is no "mount_type" executable 1996-03-15 00:14:09 +00:00
mount_cd9660
mount_devfs
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
mount_ifs Change the messages slightly when there is no "mount_type" executable 1996-03-15 00:14:09 +00:00
mount_kernfs
mount_lfs
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
mount_portalfs
mount_procfs
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
nfsd Default to udp if neither udp nor tcp is specified. The previous revision 1996-05-01 03:13:45 +00:00
nfsiod
nologin Fix a bunch of spelling errors. 1996-01-29 23:52:43 +00:00
ping
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
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
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
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