Home
last modified time | relevance | path

Searched refs:ioctl_geo (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/block/
H A Dfile-posix.c1570 struct hd_geometry ioctl_geo = {0}; in hdev_probe_geometry() local
1576 if (ioctl(s->fd, HDIO_GETGEO, &ioctl_geo) < 0) { in hdev_probe_geometry()
1581 if (!ioctl_geo.heads || !ioctl_geo.sectors || !ioctl_geo.cylinders) { in hdev_probe_geometry()
1585 if (ioctl_geo.start != 0) { in hdev_probe_geometry()
1588 geo->heads = ioctl_geo.heads; in hdev_probe_geometry()
1589 geo->sectors = ioctl_geo.sectors; in hdev_probe_geometry()
1590 geo->cylinders = ioctl_geo.cylinders; in hdev_probe_geometry()