[ On Saturday, July 12, 2003 at 03:53:44 (+0200), Matthias Buelow wrote: ]
No, not zero -- just decremented by one (assuming the proper directory
entry can be found).
No, absolutely NOT! unlink() doesn't to this for VERY good reasons, and
funlink() could not do so either.
as I say in my other reply this is impossible to do safely without
locking the whole filesystem (or unmounting it or going to single-user
mode and assuming the admin is clueful).
Forcing the user of funlink() to suffer through an internal ftw() and
still risk a failure if the link count is not exactly one is one thing,
but forcing the whole system to do without a filesystem for the time it
takes to fsck it would be ludicrous.
That's completely wrong given how I've described funlink().
--
Greg A. Woods
+1 416 218-0098; <g.a.woods@ieee.org>; <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>