*BSD News Article 39040


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!werple.apana.org.au!otis.apana.org.au!serval.net.wsu.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!cronkite.nersc.gov!dancer.ca.sandia.gov!overload.lbl.gov!lll-winken.llnl.gov!sol.ctr.columbia.edu!howland.reston.ans.net!europa.eng.gtefsd.com!news.mathworks.com!news.kei.com!ddsw1!not-for-mail
From: chilton@MCS.COM (Christopher Hilton)
Newsgroups: comp.os.386bsd.questions
Subject: Re: FBSD-1.1.5.1: filesystem problems ?
Date: 6 Dec 1994 16:21:41 -0600
Organization: /usr/lib/news/organi[sz]ation
Lines: 35
Message-ID: <3c2o5l$ai0@Mercury.mcs.com>
References: <Czzw5p.GI9@luva.lb.bawue.de> <3bjcfh$1nk@shore.shore.net> <1994Dec6.174712.20038@cm.cf.ac.uk>
NNTP-Posting-Host: mercury.mcs.com

In article <1994Dec6.174712.20038@cm.cf.ac.uk>,
Paul Richards <paul@isl.cf.ac.uk> wrote:
>In article <3bjcfh$1nk@shore.shore.net>, Robert Withrow <witr@rwwa.com> wrote:
>>In article <Czzw5p.GI9@luva.lb.bawue.de>, migieger@luva.lb.bawue.de (Michael Giegerich) writes:
>>|> I find at least every 2nd or 3rd day complaints
>>|> from fsck in my logs of the /etc/daily scripts.
>>|> 
>>|> Has anybody else experienced this behaviour? Any solutions to
>>|> known problems?
>>
>>Me too.  Generally complaints about unreferenced files...
>>I don't know how unbenign this is.  My system was up for 78 days
>>before I started rebooting to play with 2.0, even with these problems...
>

I find this problem when I have a user logged in on the console
running X while fsck is running. It wouldn't be uncommon behaviour for
an application to create a file, then fork with the file still open.
The parent now unlinks the file and the child can continue to use it.
At this point the file is removed from the directory listings because
the on disk inode count drops to 0. When the child closes the file it
disappears because the link count finally drops to 0 in the in-core
inode. If the child is still running while the fsck checks out the
filesystem wouldn't this show up as an unreferenced file?

C.
-- 
Christopher Sean Hilton	                       E-mail: chilton@mcs.com
----------------------------------------------------------------------
ICBM address:           | "Thus it is said if you know them and know 
  42 07 39 N/87 49 44 W | yourself, your victory will not be imperiled.
For PGP key finger:     | If you know Heaven and you know Earth, your 
     chilton@mcs.com    | victory will be complete." - Sun Tsu
----------------------------------------------------------------------