fdisk: make 'b' command optionally adjust C/H/S; "fdisk IMAGE_FILE" sets cylinders
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 6 Apr 2010 00:32:26 +0000 (02:32 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 6 Apr 2010 00:32:26 +0000 (02:32 +0200)
commitd958e909cdf40bdf5379f22faaa83d255ec6dc09
treeb3eed999aadaebafe8b814b591416be2f2a739a6
parent5ea1de2235e75d8fd4f559c7c6cca9a2d0396094
fdisk: make 'b' command optionally adjust C/H/S; "fdisk IMAGE_FILE" sets cylinders

function                                             old     new   delta
set_hsc_start_end                                      -     189    +189
get_boot                                            1644    1713     +69
fdisk_main                                          2620    2652     +32
get_partition_start_from_dev_start                     -      15     +15
get_partition_start                                   15       -     -15
set_partition                                        286     120    -166
------------------------------------------------------------------------------
(add/remove: 2/1 grow/shrink: 2/1 up/down: 305/-181)          Total: 124 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/fdisk.c