From owner-freebsd-questions@FreeBSD.ORG Wed Oct 19 22:16:10 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A8691065670 for ; Wed, 19 Oct 2011 22:16:10 +0000 (UTC) (envelope-from bonomi@mail.r-bonomi.com) Received: from mail.r-bonomi.com (mx-out.r-bonomi.com [204.87.227.120]) by mx1.freebsd.org (Postfix) with ESMTP id 107D38FC08 for ; Wed, 19 Oct 2011 22:16:09 +0000 (UTC) Received: (from bonomi@localhost) by mail.r-bonomi.com (8.14.4/rdb1) id p9JMFmKW093269 for freebsd-questions@freebsd.org; Wed, 19 Oct 2011 17:15:48 -0500 (CDT) Date: Wed, 19 Oct 2011 17:15:48 -0500 (CDT) From: Robert Bonomi Message-Id: <201110192215.p9JMFmKW093269@mail.r-bonomi.com> To: freebsd-questions@freebsd.org In-Reply-To: <20111019204754.GA23081@freebsd.org> Subject: Re: small du(1) question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Oct 2011 22:16:10 -0000 > Date: Wed, 19 Oct 2011 20:47:54 +0000 > From: Alexander Best > Subject: Re: small du(1) question > > the blocksize of the underlying filesystem, shouldn't the output of > 'du -A -B4096' and 'du -A' be the same? just tested this on freebsd 7 and > freebsd 10 and the outputs differ. > "So much for the theory", one might say. The answer to your 'intended as rhetorical' question is 'no'. Filesystems have 'overhead' on a per-file basis, as well as 'filesystem' (as a whole) basis. Do you know about 'index blocks' for files that are more than one block long? Does the size of the index block change if the blocksize of ghe underlying filesystem is different? Does the -A option include the index block(s), if any? Do I need to keep asking questions ? *grin*