Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 May 1996 09:38:29 -0700 (PDT)
From:      Nate Williams <nate>
To:        CVS-committers, cvs-all, cvs-sbin
Subject:   cvs commit:  src/sbin/fsck dir.c
Message-ID:  <199605091638.JAA21394@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

nate        96/05/09 09:38:29

  Modified:    sbin/fsck  dir.c
  Log:
  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>
  
  Revision  Changes    Path
  1.6       +11 -1     src/sbin/fsck/dir.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605091638.JAA21394>