From 6aaeca3fe0c46e79f9949d443061c7103ccf1652 Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Thu, 12 Jul 2012 11:47:18 +0200 Subject: 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 --- fdisks/fdisksgilabel.c | 1 - 1 file changed, 1 deletion(-) (limited to 'fdisks/fdisksgilabel.c') diff --git a/fdisks/fdisksgilabel.c b/fdisks/fdisksgilabel.c index 32dae78b0..c0b346ac0 100644 --- a/fdisks/fdisksgilabel.c +++ b/fdisks/fdisksgilabel.c @@ -151,7 +151,6 @@ check_sgi_label(struct fdisk_context *cxt) { fprintf(stderr, _("Detected sgi disklabel with wrong checksum.\n")); } - update_units(cxt); disklabel = SGI_LABEL; partitions= 16; volumes = 15; -- cgit v1.2.3-55-g7522