From owner-freebsd-questions Tue Jun 25 11:35:27 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA27039 for questions-outgoing; Tue, 25 Jun 1996 11:35:27 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA27034 for ; Tue, 25 Jun 1996 11:35:25 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA00270; Tue, 25 Jun 1996 11:34:53 -0700 From: Terry Lambert Message-Id: <199606251834.LAA00270@phaeton.artisoft.com> Subject: Re: int link(const int inode, const char *name2) To: bill@twwells.com (T. William Wells) Date: Tue, 25 Jun 1996 11:34:53 -0700 (MST) Cc: freebsd-questions@freebsd.org In-Reply-To: <4qnonq$261@twwells.com> from "T. William Wells" at Jun 25, 96 00:08:26 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Someone said that you have to manually fsck, which means rebooting > into single-user mode and running fsck; this is possible but I > doubt it. The reason given was that the inode would be cleared on > a normal fsck. My recollection is that this is true if the file is > of size zero; otherwise, it goes into lost+found. On the other > hand, it can't hurt to manually fsck.... A zero reference count file will be assumed to be a temp file and 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. The danger is in the fsck -y. 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. Better safe than sorry. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.