]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: don't call update_units() in label probes if not necessary
authorPetr Uzel <petr.uzel@suse.cz>
Thu, 12 Jul 2012 09:47:18 +0000 (11:47 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Jul 2012 16:09:22 +0000 (18:09 +0200)
commit6aaeca3fe0c46e79f9949d443061c7103ccf1652
tree12e7e116f8bc22d85b0d479ecdcc5f4df4f031c4
parentb6ab57b1abe585abe66e7de474a17c8afc503944
fdisk: don't call update_units() in label probes if not necessary

update_units() is called in _probe_labels before the label probes are
started, so we don't need to call it again in probers, unless it messes
around with geometry, which currently only check_sun_label() does (so
keep the call to update_units() in this one).

Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
fdisks/fdiskaixlabel.c
fdisks/fdiskmaclabel.c
fdisks/fdisksgilabel.c