From: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> We don't use HDIO_GETGEO since e5b5a349. Signed-off-by: Ruediger Meier <ruediger.meier@xxxxxxxxxxx> --- libfdisk/src/sgi.c | 3 +-- libfdisk/src/sun.c | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/libfdisk/src/sgi.c b/libfdisk/src/sgi.c index 6228cf8..c77724a 100644 --- a/libfdisk/src/sgi.c +++ b/libfdisk/src/sgi.c @@ -968,7 +968,6 @@ static int sgi_create_disklabel(struct fdisk_context *cxt) assert(cxt->label); assert(fdisk_is_label(cxt, SGI)); -#ifdef HDIO_GETGEO if (cxt->geom.heads && cxt->geom.sectors) { 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); } } -#endif + rc = fdisk_init_firstsector_buffer(cxt, 0, 0); if (rc) return rc; diff --git a/libfdisk/src/sun.c b/libfdisk/src/sun.c index a50076a..a97ecac 100644 --- a/libfdisk/src/sun.c +++ b/libfdisk/src/sun.c @@ -225,7 +225,6 @@ static int sun_create_disklabel(struct fdisk_context *cxt) sunlabel->vtoc.sanity = cpu_to_be32(SUN_VTOC_SANITY); sunlabel->vtoc.nparts = cpu_to_be16(SUN_MAXPARTITIONS); -#ifdef HDIO_GETGEO if (cxt->geom.heads && cxt->geom.sectors) { fdisk_sector_t llsectors; @@ -246,7 +245,6 @@ static int sun_create_disklabel(struct fdisk_context *cxt) cxt->dev_path, cxt->geom.cylinders); } } else -#endif ask_geom(cxt); sunlabel->acyl = cpu_to_be16(0); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html