Searched refs:hdg (Results 1 – 1 of 1) sorted by relevance
158 struct hd_geometry hdg; in get_drive_geometry() local161 if (ioctl (fd, HDIO_GETGEO, &hdg)) in get_drive_geometry()168 geom->cylinders = hdg.cylinders; in get_drive_geometry()169 geom->heads = hdg.heads; in get_drive_geometry()170 geom->sectors = hdg.sectors; in get_drive_geometry()217 struct disklabel hdg; in get_drive_geometry() local218 if (ioctl (fd, DIOCGDINFO, &hdg)) in get_drive_geometry()221 geom->cylinders = hdg.d_ncylinders; in get_drive_geometry()222 geom->heads = hdg.d_ntracks; in get_drive_geometry()223 geom->sectors = hdg.d_nsectors; in get_drive_geometry()[all …]