]> err.no Git - util-linux/commit
fdisk: round reported sizes rather than truncate
authorKarel Zak <kzak@redhat.com>
Wed, 20 Aug 2008 21:27:50 +0000 (23:27 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 20 Aug 2008 21:27:50 +0000 (23:27 +0200)
commit32b40fec8f64c05c130c7a96857ca2bf40ea9c0d
tree7fd5a3a6c0cebc14adbd5e9e95347d6635bb4568
parent455824187a51aceb37d2890030d7ffe88359bfcf
fdisk: round reported sizes rather than truncate

Exmaples (-old, +new):

- Disk /dev/mapper/bar: 266.6 GB, 266666666496 bytes
+ Disk /dev/mapper/bar: 266.7 GB, 266666666496 bytes

- WARNING: The size of this disk is 2.1 TB (2199023255552 bytes).
+ WARNING: The size of this disk is 2.2 TB (2199023255552 bytes).

Reported-by: Stepan Kasal <skasal@redhat.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
fdisk/fdisk.c