Bug 1596183 - Conversions' results from data-storage values displayed as 1024-blocks into values in bits, do not match real sizes.
Summary: Conversions' results from data-storage values displayed as 1024-blocks into v...
Keywords:
Status: CLOSED DUPLICATE of bug 1303456
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 28
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-06-28 11:52 UTC by ricky.tigg
Modified: 2018-06-28 13:57 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-06-28 13:57:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.