bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unlink() and directories.


From: Thomas Bushnell, BSG
Subject: Re: unlink() and directories.
Date: 02 Nov 2002 13:39:45 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

nisse@lysator.liu.se (Niels Möller) writes:

> tb@becket.net (Thomas Bushnell, BSG) writes:
> 
> > "Alfred M. Szmidt" <ams@kemisten.nu> writes:
> > 
> > > Is it intentional that unlink() on GNU/Hurd does not handle
> > > directories?
> > 
> > Yes.
> 
> How will this work for nodes that are both directories and files?

It's up to the filesystem to decide.  The basic principle is that
"unlink" shouldn't kill off arbitrarily large chunks of file storage. 

Regardless, if "unlink" *does* succeed for such nodes, it has to
actually do a complete deletion, and not just remove one filesystem
link pointer, the way old-style Unix did back in the day.  (To delete
a directory, back in the day, there was no rmdir call; you used a
setuid root program to unlink the *three* relevant links.)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]