coreutils: du -b retuns much smaller value than du --block-size=1

Projekt:Trisquel
Version:6.0
Komponente:Packages
Kategorie:Fehlerbericht
Priorität:normal
Zugewiesen:nicht zugewiesen
Status:wrong
Beschreibung

du --version
du (GNU coreutils) 8.13
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjörn Granlund, David MacKenzie, Paul Eggert,
and Jim Meyering.
from: /home/martins/Documents/firefox-41.0.2+build2
$ du -d0 -b
982041150 .
$ du -d0 --block-size=1
1410564096 .
$ du -d0 -k
1377504 .
$ du -d0 -m
1346 .

AnhangGröße
Screenshot from 2017-02-15 22:20:12.png55.86 KB
Do, 02/16/2017 - 00:45
Status:active» wrong

du normally returns the disk space used by a file in the filesystem. The option -b is equivalent to --apparent-size --block-size=1, which outputs the apparent size of the file only. The two values are expected to be different.

Fr, 02/17/2017 - 18:11

I checked the manual again. I stand corrected. Thank-you for pointing it out.