From owner-freebsd-questions@FreeBSD.ORG Wed Feb 23 18:24:41 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB0C416A4CE for ; Wed, 23 Feb 2005 18:24:41 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id B332843D31 for ; Wed, 23 Feb 2005 18:24:40 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.1) id j1NIOeY0043994; Wed, 23 Feb 2005 12:24:40 -0600 (CST) (envelope-from dan) Date: Wed, 23 Feb 2005 12:24:40 -0600 From: Dan Nelson To: Robert Huff Message-ID: <20050223182439.GI253@dan.emsphone.com> References: <16924.50632.444541.28202@jerusalem.litteratus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16924.50632.444541.28202@jerusalem.litteratus.org> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: questions@freebsd.org Subject: Re: question about reported directory size X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Feb 2005 18:24:41 -0000 In the last episode (Feb 23), Robert Huff said: > huff@>> dir /usr/lost+found/ > total 192 > drwxrwxrwt 2 root wheel 194048 Feb 23 13:01 . > drwxr-xr-x 22 root wheel 512 Feb 23 03:38 .. > > Now I understand the 't' in the permissions ... sort of. > a) does this mean the reported directory size will never > shrink? > b) is that the actual blocks in use, or an artifact? > c) is is safe to delete and recreate the directory? A directory is only truncated on the first file create after a delete; this optimizes the common rm -rf case. Touch a dummy file in there and check the size again. -- Dan Nelson dnelson@allantgroup.com