Subject: Phantom "fsck" complaints from /etc/daily run?
To: None <port-sparc@sun-lamp.cs.berkeley.edu>
From: - Greg Earle <earle@isolar.Tujunga.CA.US>
List: port-sparc
Date: 08/12/1994 20:17:44
I have been having this problem/curiosity for a while, both with the April 25
and most recent binary snapshots.  Something about being run from "cron" makes
"fsck" howl at the moon or something (-:

Have any of you had the "daily output" tell you that an fsck on the root showed
up an unreferenced file, but if you manually run "fsck" yourself, it shows
nothing wrong?  I get this in the "daily output" mail, *every* night:

Message 6:
From daemon Fri Aug 12 02:08:41 1994
Date: Fri, 12 Aug 1994 02:08:40 -0700
From: Charlie Root <root>
To: root
Subject: daily output

Subject: netbsd4me daily run output

...

Checking filesystems:
** /dev/rsd0a (NO WRITE)
** Last Mounted on /
** Root file system
UNREF FILE I=730  OWNER=root MODE=100644
SIZE=0 MTIME=Aug 12 02:00 1994 
CLEAR? no

Yet if I randomly do a manual "fsck", it yields nothing wrong:

netbsd4me# fsck /dev/rsd0a
** /dev/rsd0a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
335 files, 9917 used, 1450 free (34 frags, 177 blocks, 0.3% fragmentation)

Anyone else get these "phantom" fsck complaints?

This looks like the case where a running process creates some temporary file at
2:00 AM and unlink()'s it, and that process doesn't go away until after the
/etc/daily run has finished, so the fsck trips over the unlinked-but-still-
there file.  I'd be willing to wager that this is what is happening, but I
don't know what created & unlinked the file.  Since /etc/daily is started at
2:00, it would figure that the culprit was something in there; but it looks to
me like all the processes run to completion before the "fsck" is done.

Maybe I should run /etc/daily at an hour when I'm still at work :-)

	- Greg

------------------------------------------------------------------------------