[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: du confusion



On Tue, Feb 21, 2006 at 10:06:30AM +1100, Russell Coker wrote:
> du currently displays the total count of blocks used for the file including 
> block(s) for XATTRs.  This means that every file is reported as having a 
> block used for the security.selinux XATTR (even though those blocks are 
> shared extensively on typical SE Linux systems).
> 
> A more useful display on SE Linux systems is to have the --apparent-size 
> option of du enabled.  I suggest that we have a default install of Fedora 
> alias "du" to "du --apparent-size".

That would be really evil, du is *supposed* to report disk usage not 
file sizes.  It's always been true that disk usage and file size can 
diverge, that's why du and ls are separate tools.

joe


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]