From owner-freebsd-stable Mon Apr 26 11: 5:45 1999 Delivered-To: freebsd-stable@freebsd.org Received: from shell.webmaster.com (mail.webmaster.com [209.133.28.73]) by hub.freebsd.org (Postfix) with ESMTP id 9FEEA15304 for ; Mon, 26 Apr 1999 11:05:38 -0700 (PDT) (envelope-from davids@webmaster.com) Received: from whenever ([209.133.29.2]) by shell.webmaster.com (Post.Office MTA v3.5.3 release 223 ID# 0-12345L500S10000V35) with SMTP id com; Mon, 26 Apr 1999 11:05:37 -0700 From: "David Schwartz" To: , > Cc: Subject: RE: file disappeared? Date: Mon, 26 Apr 1999 11:05:37 -0700 Message-ID: <001301be900f$630f5150$021d85d1@whenever.youwant.to> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2377.0 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0 In-reply-to: <19990426120756.C422@holly.dyndns.org> Importance: Normal Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You are expecting 'rm' to do something other than it actually does. All 'rm' does is call 'unlink'. Read the man page for 'unlink' and you should understand what is happening: The unlink() function removes the link named by path from its directory and decrements the link count of the file which was referenced by the link. If that decrement reduces the link count of the file to zero, and no process has the file open, then all resources associated with the file are reclaimed. If one or more process have the file open when the last link is removed, the link is removed, but the removal of the file is de- layed until all references to it have been closed. path may not be a di- rectory. DS > -----Original Message----- > From: owner-freebsd-stable@FreeBSD.ORG > [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Chris Costello > Sent: Monday, April 26, 1999 10:08 AM > To: Dean Lombardo <"ayk1 "@ukc.ac.uk> > Cc: stable@FreeBSD.ORG > Subject: Re: file disappeared? > > > On Mon, Apr 26, 1999, Dean Lombardo wrote: > > The subject says it all: I removed a file, but according to df, it's > > still there! > > > > pcayk:~/tmp$ df -k . > > Filesystem 1K-blocks Used Avail Capacity Mounted on > > /dev/wd0s1f 7621844 6975669 36428 99% /usr > > > > pcayk:~/tmp$ ls -l > > -rw-r--r-- 1 ayk1 users 716247040 Apr 22 1999 bigcdimage.iso > > > > pcayk:~/tmp$ rm bigcdimage.iso > > > > pcayk:~/tmp$ df -k . > > Filesystem 1K-blocks Used Avail Capacity Mounted on > > /dev/wd0s1f 7621844 6975669 36428 99% /usr > > Try sync(1)? > > -- > Chris Costello > To define recursion, we must first define recursion. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message