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>
This commit is contained in:
parent
b6ab57b1ab
commit
6aaeca3fe0
3 changed files with 0 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue