FreeBSD src
Go to file
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
bin `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
eBones Localize time 1996-05-07 19:05:10 +00:00
etc Nuke the nasty cleaning of /var/run after netstart starts - it nukes 1996-05-08 09:25:57 +00:00
games Correct some man page cross references and file location references. 1996-04-07 00:06:21 +00:00
gnu `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
include Made this work with the documented prerequisite #includes (none). 1996-05-01 00:57:57 +00:00
lib Make rules reentrant. 1996-05-09 11:30:51 +00:00
libexec `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
lkm `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
release Some cosmetic changes: 1996-05-09 09:42:17 +00:00
sbin From: Terry Lambert <terry@lambert.org> 1996-05-09 16:38:27 +00:00
secure Localize time 1996-05-07 19:05:10 +00:00
share Make some rules reentrant, and mark the onces that cannot be. 1996-05-09 13:01:44 +00:00
sys Fix brino on my part. _etext doesn't include the padding to a page 1996-05-09 07:16:00 +00:00
tools Don't look in libkern, it went away. 1995-12-29 01:51:23 +00:00
usr.bin `mv'' -> `mv -f'' 1996-05-07 23:19:49 +00:00
usr.sbin Some cosmetic changes: 1996-05-09 09:42:17 +00:00
COPYRIGHT This is the official 4.4 Lite copyright. 1994-09-11 07:53:28 +00:00
Makefile 1) make -DCLOBBER not remove most of /usr/lib 1996-05-04 07:12:07 +00:00