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!news.ysu.edu!news.radio.cz!news.apfel.de!eerie.fr!news.maxwell.syr.edu!disgorge.news.demon.net!demon!dispatch.news.demon.net!demon!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet From: brian@shift.utell.net (Brian Somers) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: FreeBSD auto directory shrink? Date: 10 Jun 1997 15:02:58 GMT Organization: Awfulhak Ltd. Message-ID: <5njqb2$c02@ui-gate.utell.co.uk> References: <5njkj7$e8$1@stargate.stdio.com> Reply-To: brian@awfulhak.org, brian@utell.co.uk NNTP-Posting-Host: shift.utell.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 Lines: 21 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42699 In article <5njkj7$e8$1@stargate.stdio.com>, risner@stdio.com writes: > I read that in 4.4 code, directories would automatically shrink > during a file creation if they contained excess slack of unused slots. > Is this no longer valid? Was this never integrated? > > I had a 6 meg directory with no files and created a single file. > It did not go away... Works on my bench. I *believe* that only trailing empty slots in the directory file will be lost (ie, the directory file itself is truncated), so if you create 100 files then remove the first 99, creating a single file will not change the size of the directory. > Risner -- Brian <brian@awfulhak.org> <brian@freebsd.org> <http://www.awfulhak.org> Don't _EVER_ lose your sense of humour !