From owner-cvs-src-old@FreeBSD.ORG Thu Nov 6 16:30:45 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 325D61065802 for ; Thu, 6 Nov 2008 16:30:44 +0000 (UTC) (envelope-from mlaier@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 6B77B8FC12 for ; Thu, 6 Nov 2008 16:30:44 +0000 (UTC) (envelope-from mlaier@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mA6GUiqR078057 for ; Thu, 6 Nov 2008 16:30:44 GMT (envelope-from mlaier@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mA6GUixt078056 for cvs-src-old@freebsd.org; Thu, 6 Nov 2008 16:30:44 GMT (envelope-from mlaier@repoman.freebsd.org) Message-Id: <200811061630.mA6GUixt078056@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to mlaier@repoman.freebsd.org using -f From: Max Laier Date: Thu, 6 Nov 2008 16:30:38 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/du du.1 du.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2008 16:30:45 -0000 mlaier 2008-11-06 16:30:38 UTC FreeBSD src repository Modified files: usr.bin/du du.1 du.c Log: SVN rev 184733 on 2008-11-06 16:30:38Z by mlaier Add two new options to du(1): -A Display the apparent size instead of the disk usage. This can be helpful when operating on compressed volumes or sparse files. -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 hierachy would require on a filesystem with the given blocksize. Unless in -A mode, blocksize is rounded up to the next multiple of 512. The former is similar to GNU's du(1) --apparent-size. The latter is different from what GNU's du(1) -B does, which is equivalent to setting BLOCKSIZE in our implementation and is rather pointless as it doesn't add any real value (i.e. you can achieve the same with a simple awk-script). No change in the normal output or processing. Reviewed by: keramida@, Peter French Otherwise silience from: freebsd-hackers@ Revision Changes Path 1.34 +32 -7 src/usr.bin/du/du.1 1.48 +53 -28 src/usr.bin/du/du.c