Bug 1596183

Summary: Conversions' results from data-storage values displayed as 1024-blocks into values in bits, do not match real sizes.
Product: [Fedora] Fedora Reporter: ricky.tigg
Component: coreutilsAssignee: Kamil Dudka <kdudka>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 28CC: admiller, jamartis, jarodwilson, kdudka, kzak, ooprala, ovasik, p, skisela, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-28 13:57:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description ricky.tigg 2018-06-28 11:52:32 UTC
Description of problem: Conversions' results from data-storage values displayed as 1024-blocks into values in bits, do not match real sizes.

Version-Release number of component: coreutils-8.29-7.fc28.x86_64

How reproducible:
$ LANG=C df -P
Filesystem                    1024-blocks  Used    Available Capacity Mounted on
(...)
/dev/mapper/fedora--live-root 153761232    6048548 139832392 5%       /

Actual results: 1024 * 153 761 232 = 157 451 501 568 bits; result does not match the real size which is illustrated as output from the 'lsblk' command.

Expected results: df's outputs to be similar to the ones resulting from the 'lsblk' command – here 161 052 884 992 bits–

Additional info: 
$ lsblk -b
NAME                  MAJ:MIN RM   SIZE          RO TYPE MOUNTPOINT
(...)
  ├─fedora--live-root 253:0    0   161052884992  0  lvm  /

Comment 1 Kamil Dudka 2018-06-28 13:57:49 UTC
See also: http://lists.gnu.org/archive/html/bug-coreutils/2016-02/msg00004.html

*** This bug has been marked as a duplicate of bug 1303456 ***