[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18965: --block-size option of "du" command gives a wrong value
From: |
Pádraig Brady |
Subject: |
bug#18965: --block-size option of "du" command gives a wrong value |
Date: |
Thu, 06 Nov 2014 01:20:19 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
tag 18965 notabug
close 18965
stop
On 11/06/2014 12:32 AM, philippe wrote:
> Dear sir,
>
> I fund the following problem : The --block-size option of "du" gives a wrong
> value :
>
> du -b firmware-7.7.0-amd64-i386-netinst.iso
> 524288000 firmware-7.7.0-amd64-i386-netinst.iso
>
> du --block-size=2048 firmware-7.7.0-amd64-i386-netinst.iso
> *256002 * firmware-7.7.0-amd64-i386-netinst.iso
>
> *256002 *is wrong - the right value is 25600
Perhaps the _usage_ is 4KiB more than the apparent size,
to hold selinux or other extended attributes or something?
Does this work as you expect?
du --apparent-size --block-size=2048 firmware-7.7.0-amd64-i386-netinst.iso
Marking as not a bug for now.
thanks,
Pádraig.