Bug 1673452

Summary: By default, display digital sizes using a two-decimals fractional accuracy
Product: [Fedora] Fedora Reporter: ricky.tigg
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 29CC: jonathan, kzak
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-12 13:31:35 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 2019-02-07 15:00:12 UTC
Enhancement request: by default, display digital sizes using a two-decimals fractional accuracy, e.g 1.32 GiB.

Version-Release number of component: util-linux.x86_64 2.32.1-1.fc29 @anaconda

Illustrated by command:

# fdisk -lu /dev/sdc
Disk /dev/sdc: 7.5 GiB, 8006901760 bytes, 15638480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc1a364b8

Device     Boot Start      End  Sectors  Size Id Type
/dev/sdc1        2048 15636479 15634432  7.5G 83 Linux

Comment 1 Karel Zak 2019-02-12 13:31:35 UTC
I have implemented support for this in upstream tree, but for now it's enabled for fdisk/sfdiks/cfdisk disk summary only.

  https://github.com/karelzak/util-linux/commit/39f37044b3146f222cda182494abd4ddb5217335

It looks unreadable in lists (SIZE columns). I'd like to keep the outputs to look like df (and so on).