Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: dummy question Date: 23 Oct 1996 22:44:26 GMT Organization: Private BSD site, Dresden Lines: 20 Message-ID: <54m74a$s7t@uriah.heep.sax.de> References: <53mfdu$1iv@wa4phy.async.com> <543o1d$pe0@newsbr.eunet.fr> <546jmr$1ks@anorak.coverform.lan> <5495rd$c8@uriah.heep.sax.de> <54i85h$1tb@anorak.coverform.lan> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E brian@anorak.coverform.lan (Brian Somers) wrote: > The problem is that unlink must have a special "I'm a directory" case > where it's allowed to free an inode with a 2 count if it's an empty > directory (only . & ..). The Sequent unlink didn't have any logic > that said "if the link count > 2, decrement it and remove the entry > from the parent directory file. It probably figured that a link count > greater than 2 implies that there are subdirectories - therefore unlink > fails :( This is how the rmdir syscall works in BSD, while unlink used to really unlink everything you told it if you are root. (Again, until very recently only...) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)