summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisksgilabel.c
diff options
context:
space:
mode:
authorPetr Uzel2012-07-12 11:47:18 +0200
committerKarel Zak2012-07-16 18:09:22 +0200
commit6aaeca3fe0c46e79f9949d443061c7103ccf1652 (patch)
tree12e7e116f8bc22d85b0d479ecdcc5f4df4f031c4 /fdisks/fdisksgilabel.c
parentutmpdump: kill unused variable in follow_by_inotify() (diff)
downloadkernel-qcow2-util-linux-6aaeca3fe0c46e79f9949d443061c7103ccf1652.tar.gz
kernel-qcow2-util-linux-6aaeca3fe0c46e79f9949d443061c7103ccf1652.tar.xz
kernel-qcow2-util-linux-6aaeca3fe0c46e79f9949d443061c7103ccf1652.zip
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>
Diffstat (limited to 'fdisks/fdisksgilabel.c')
-rw-r--r--fdisks/fdisksgilabel.c1
1 files changed, 0 insertions, 1 deletions
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;