GNU bug report logs - #34110
du: add dual-column showing apparent-size and disk-size

Previous Next

Package: coreutils;

Reported by: René J.V. Bertin <rjvbertin <at> gmail.com>

Date: Wed, 16 Jan 2019 22:04:02 UTC

Severity: wishlist

Full log


Message #11 received at 34110 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: René J.V. Bertin <rjvbertin <at> gmail.com>,
 34110 <at> debbugs.gnu.org
Subject: Re: bug#34110: feature request: dual-column du output, showing "real"
 and "on-disk" sizes (and about that "apparent-size" concept)
Date: Wed, 16 Jan 2019 16:28:14 -0800
I like the idea of two columns at once.

> with "--apparent-size", du returns the actual file size; without, it returns how large the file appears to be (judging from its disk footprint).

The "apparent" size is the size that "ls -l" outputs, and is the size 
that traditional I/O operations like 'read' and 'write' deal with, 
regardless of the underlying implementation (where the size might be 
smaller or larger than the "apparent" size). In contrast the "disk 
usage" size is whatever the filesystem tells us it is. I wouldn't call 
either size the "actual" size these days, as even the disk usage (or 
"disk footprint") might be virtual blocks stored in a lower-level 
compressed device, and there's no way "du" can find out how much of the 
lower-level device is being used.





This bug report was last modified 6 years and 151 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.