From owner-freebsd-questions Tue Jun 25 13:00:45 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id NAA08714 for questions-outgoing; Tue, 25 Jun 1996 13:00:45 -0700 (PDT) Received: from twwells.com (twwells.com [199.79.159.1]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id NAA08630 for ; Tue, 25 Jun 1996 13:00:26 -0700 (PDT) Received: by twwells.com (Smail3.1.29.1 #8) id m0uYeHb-00018bC; Tue, 25 Jun 96 16:00 EDT To: freebsd-questions@freebsd.org From: bill@twwells.com (T. William Wells) Subject: Re: int link(const int inode, const char *name2) Date: 25 Jun 1996 16:00:16 -0400 Lines: 27 Message-ID: <4qpggg$g1r@twwells.com> References: <4qnonq$261@twwells.com> <199606251834.LAA00270@phaeton.artisoft.com> NNTP-Posting-Host: localhost.twwells.com Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In article <199606251834.LAA00270@phaeton.artisoft.com>, Terry Lambert wrote: : A zero reference count file will be assumed to be a temp file and : cleared. That's certainly not my recollection. : cleared. A file with a non-zero reference an n-1 or fewer real : references for a count fo n will go into lost+found on automatic fsck. If a file has _any_ references, it _will not_ go into lost+found. Instead, its reference count will be adjusted to reflect the actual link count. : There is also the danger that the recovery process could not be : initiated successfully if the system starupt created files and : (potentially) reused blocks from the file (probability depends on : file size relative to disk size times number of blocks allocated : for temp files of one kind or another on startup on that disk. Now I'm completely convinced you don't know what you're talking about. One of two conditions obtains at boot: either the inode remains on disk and so it holds the data blocks or the inode does not. If the former, the system startup can create files till the fs is full and the file's data won't be touched. If the latter, the file is already gone, gone, gone and it'll be nearly impossible to recover the data, no matter what the startup does.