freebsd-dev/sbin/fsck_ifs
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
..
dir.c From: Terry Lambert <terry@lambert.org> 1996-05-09 16:38:27 +00:00
fsck_ifs.8 Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
fsck.h Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
inode.c Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
main.c Remove unneeded ctype.h 1995-10-23 23:50:20 +00:00
Makefile Convert to our man installation style. Also fixed long-standing bug 1994-08-05 02:42:42 +00:00
pass1.c Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
pass1b.c Submitted by: phk, added to by bde 1995-04-02 14:52:29 +00:00
pass2.c Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
pass3.c Submitted by: phk, added to by bde 1995-04-02 14:52:29 +00:00
pass4.c Submitted by: phk, added to by bde 1995-04-02 14:52:29 +00:00
pass5.c Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
preen.c Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
setup.c Remove trailing whitespace. 1995-05-30 06:12:45 +00:00
utilities.c Remove unneeded ctype.h 1995-10-23 23:50:20 +00:00