From owner-freebsd-questions Thu Oct 18 9:42:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 3E1D837B407 for ; Thu, 18 Oct 2001 09:42:37 -0700 (PDT) Received: (from dan@localhost) by dan.emsphone.com (8.11.6/8.11.6) id f9IGgYd40880; Thu, 18 Oct 2001 11:42:34 -0500 (CDT) (envelope-from dan) Date: Thu, 18 Oct 2001 11:42:33 -0500 From: Dan Nelson To: Sheldon Hearn Cc: setantae , freebsd-questions@FreeBSD.ORG Subject: Re: Directory entries won't shrink Message-ID: <20011018114233.C97943@dan.emsphone.com> References: <20011018105656.B97943@dan.emsphone.com> <61350.1003421002@axl.seasidesoftware.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61350.1003421002@axl.seasidesoftware.co.za> User-Agent: Mutt/1.3.23i X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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