Bug 1673452 - By default, display digital sizes using a two-decimals fractional accuracy
Summary: By default, display digital sizes using a two-decimals fractional accuracy
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Karel Zak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-07 15:00 UTC by ricky.tigg
Modified: 2019-02-12 13:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-02-12 13:31:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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).


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