libfdisk: remove ifdef HDIO_GETGEO
We don't use HDIO_GETGEO since e5b5a349
.
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
parent
7a11addee8
commit
d9851e63fb
|
@ -968,7 +968,6 @@ static int sgi_create_disklabel(struct fdisk_context *cxt)
|
||||||
assert(cxt->label);
|
assert(cxt->label);
|
||||||
assert(fdisk_is_label(cxt, SGI));
|
assert(fdisk_is_label(cxt, SGI));
|
||||||
|
|
||||||
#ifdef HDIO_GETGEO
|
|
||||||
if (cxt->geom.heads && cxt->geom.sectors) {
|
if (cxt->geom.heads && cxt->geom.sectors) {
|
||||||
fdisk_sector_t llsectors;
|
fdisk_sector_t llsectors;
|
||||||
|
|
||||||
|
@ -990,7 +989,7 @@ static int sgi_create_disklabel(struct fdisk_context *cxt)
|
||||||
"> 33.8 GB."), cxt->dev_path, cxt->geom.cylinders);
|
"> 33.8 GB."), cxt->dev_path, cxt->geom.cylinders);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
rc = fdisk_init_firstsector_buffer(cxt, 0, 0);
|
rc = fdisk_init_firstsector_buffer(cxt, 0, 0);
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
|
|
|
@ -225,7 +225,6 @@ static int sun_create_disklabel(struct fdisk_context *cxt)
|
||||||
sunlabel->vtoc.sanity = cpu_to_be32(SUN_VTOC_SANITY);
|
sunlabel->vtoc.sanity = cpu_to_be32(SUN_VTOC_SANITY);
|
||||||
sunlabel->vtoc.nparts = cpu_to_be16(SUN_MAXPARTITIONS);
|
sunlabel->vtoc.nparts = cpu_to_be16(SUN_MAXPARTITIONS);
|
||||||
|
|
||||||
#ifdef HDIO_GETGEO
|
|
||||||
if (cxt->geom.heads && cxt->geom.sectors) {
|
if (cxt->geom.heads && cxt->geom.sectors) {
|
||||||
fdisk_sector_t llsectors;
|
fdisk_sector_t llsectors;
|
||||||
|
|
||||||
|
@ -246,7 +245,6 @@ static int sun_create_disklabel(struct fdisk_context *cxt)
|
||||||
cxt->dev_path, cxt->geom.cylinders);
|
cxt->dev_path, cxt->geom.cylinders);
|
||||||
}
|
}
|
||||||
} else
|
} else
|
||||||
#endif
|
|
||||||
ask_geom(cxt);
|
ask_geom(cxt);
|
||||||
|
|
||||||
sunlabel->acyl = cpu_to_be16(0);
|
sunlabel->acyl = cpu_to_be16(0);
|
||||||
|
|
Loading…
Reference in New Issue