Subject: Re: FS clean bit, is it reliable?
To: David Gilbert <>
From: Michael L. VanLoon -- <>
List: current-users
Date: 11/05/1995 00:48:04
>	[on the behavior of unlink()]
>	I think that you'll find that UN*X (unlike other systems) is
>happy to remove a file even if it's in use.  The caviat is that the
>	You might notice that the function is 'unlink' not 'delete'

Actually, you aren't removing the *file* (inode), but the *name*
(hence unlink).  You are unlinking the name from the inode.  The
inode, and the data it points to, are still present on the disk,
however, until the kernel closes its last reference to it (or remains
even after that if it is also hard-linked by another name on the

  Michael L. VanLoon                       
       --<  Free your mind and your machine -- NetBSD free un*x  >--
     NetBSD working ports: 386+PC, Mac 68k, Amiga, HP300, Sun3, Sun4,
                           DEC PMAX (MIPS), DEC Alpha, PC532
     NetBSD ports in progress: VAX, Atari 68k, others...