From owner-freebsd-questions@FreeBSD.ORG Wed Oct 19 19:39:28 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 73CB81065670 for ; Wed, 19 Oct 2011 19:39:28 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from asmtpout028.mac.com (asmtpout028.mac.com [17.148.16.103]) by mx1.freebsd.org (Postfix) with ESMTP id 092228FC0C for ; Wed, 19 Oct 2011 19:39:26 +0000 (UTC) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from cswiger1.apple.com ([17.209.4.71]) by asmtp028.mac.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0LTB00M03VXDOR00@asmtp028.mac.com>; Wed, 19 Oct 2011 12:39:14 -0700 (PDT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813,1.0.211,0.0.0000 definitions=2011-10-19_07:2011-10-19, 2011-10-19, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1110190236 From: Chuck Swiger In-reply-to: <20111019193413.GA9065@freebsd.org> Date: Wed, 19 Oct 2011 12:39:13 -0700 Message-id: <6620A8F5-523D-4A1E-9CC1-9C2D917BF0C2@mac.com> References: <20111019193413.GA9065@freebsd.org> To: Alexander Best X-Mailer: Apple Mail (2.1084) Cc: freebsd-questions@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 19:39:28 -0000 On Oct 19, 2011, at 12:34 PM, Alexander Best wrote: > the du(1) man page states the following: > > " > -B blocksize > Calculate block counts in blocksize byte blocks. This is differ- > ent from the -k, -m options or setting BLOCKSIZE and gives an > estimate of how much space the examined file hierarchy would > require on a filesystem with the given blocksize. Unless in -A > mode, blocksize is rounded up to the next multiple of 512. > " > > is this a doc bug, or does du(1) really always assume that every filesystem's > blocksize == 512? The default blocksize is 512 bytes. The -B option flag lets you tell du to assume a different filesystem blocksize. Regards, -- -Chuck