GNU bug report logs - #18965
--block-size option of "du" command gives a wrong value

Previous Next

Package: coreutils;

Reported by: philippe <philippe_benezech <at> yahoo.fr>

Date: Wed, 5 Nov 2014 23:41:03 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18965 in the body.
You can then email your comments to 18965 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#18965; Package coreutils. (Wed, 05 Nov 2014 23:41:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to philippe <philippe_benezech <at> yahoo.fr>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Wed, 05 Nov 2014 23:41:04 GMT) Full text and rfc822 format available.

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

From: philippe <philippe_benezech <at> yahoo.fr>
To: bug-coreutils <at> gnu.org
Subject: --block-size option of "du" command gives a wrong value
Date: Thu, 06 Nov 2014 00:32:21 +0100
[Message part 1 (text/plain, inline)]
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

I didn't find the same problem with the isosize command :

isosize firmware-7.7.0-amd64-i386-netinst.iso
524288000

isosize -x firmware-7.7.0-amd64-i386-netinst.iso
nombre de secteurs : *256000*, taille de secteur : 204

My configuration :

- Linux Asus 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2 x86_64 GNU/Linux

- Paquet coreutils :
- i   8.13-3.5

Best regards


Philippe Bénézech

[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#18965; Package coreutils. (Thu, 06 Nov 2014 00:21:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: philippe <philippe_benezech <at> yahoo.fr>
Cc: 18965 <at> debbugs.gnu.org
Subject: Re: bug#18965: --block-size option of "du" command gives a wrong value
Date: Thu, 06 Nov 2014 01:20:19 +0100
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.




Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 06 Nov 2018 18:19:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 18965 <at> debbugs.gnu.org and philippe <philippe_benezech <at> yahoo.fr> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Tue, 06 Nov 2018 18:19:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 05 Dec 2018 12:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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