Date: Thu, 18 Oct 2001 11:42:33 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: Sheldon Hearn <sheldonh@starjuice.net> Cc: setantae <setantae@submonkey.net>, freebsd-questions@FreeBSD.ORG Subject: Re: Directory entries won't shrink Message-ID: <20011018114233.C97943@dan.emsphone.com> In-Reply-To: <61350.1003421002@axl.seasidesoftware.co.za> References: <20011018105656.B97943@dan.emsphone.com> <61350.1003421002@axl.seasidesoftware.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Oct 18), Sheldon Hearn said: > What makes you say that? The directory is > > /var/spool/exim-mailman/input > > It contains 64 entries (excluding . and ..), each being the name of > another directory. > > Touching a file in this directory iand then syncing does not cause it > to shrink. Which makes sense, since you said the directory will > never shrink if the last block is occupied by a used entry. > > So to shrink this directory, I have to shut down the entire mail > system, move the 64 entries into a new directory and replace the > existing directory with the new one. Just renaming the directories should be enough. I don't know how exim works, but can you disable a particular spoolfile while you rename it, or simply kill -STOP exim while you run that for loop? It shouldn't take more than .01 second to run. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011018114233.C97943>