Xref: utzoo comp.unix.questions:8333 comp.unix.wizards:9984 comp.sys.apollo:1128 Path: utzoo!attcan!uunet!mcvax!kunivv1!hobbit!ge From: ge@hobbit.sci.kun.nl (Ge' Weijers) Newsgroups: comp.unix.questions,comp.unix.wizards,comp.sys.apollo Subject: Re: File space allocation/deallocation under Unix (BSD4.x) Message-ID: <298@hobbit.sci.kun.nl> Date: 19 Jul 88 09:57:19 GMT References: <292@anumb.UUCP> Organization: University of Nijmegen, The Netherlands. Lines: 16 From article <292@anumb.UUCP>, by eao@anumb.UUCP (e.a.olson): > I believe that directory blocks are never reclaimed until > the directory is deleted. If you have many files in a directory, > (i.e. more entries than can fit into a directory block), one > entry in the first block points to another disk block for > more name-inode entries. Even if you later clean up that directory > so that there are only enough entries to fit into one disk block, > the indirect block is retained. This was true for BSD 4.2 at least. I just looked at the directory /usr/spool/news/.rnews on our BSD 4.3 system, and it was only 512 bytes long, so there must be some space reclaiming going on (after a news problem 1500 articles were queued last week) -- Ge' Weijers, Informatics dept., Nijmegen University, the Netherlands UUCP: {uunet!,}mcvax!kunivv1!hobbit!ge