Home
last modified time | relevance | path

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

/haiku/src/tools/fs_shell/
H A Dunistd.cpp173 struct hd_geometry hdGeometry; in fssh_ioctl() local
187 } else if (ioctl(fd, HDIO_GETGEO, &hdGeometry) == 0) { in fssh_ioctl()
188 if (hdGeometry.heads == 0) { in fssh_ioctl()
191 off_t bytesPerCylinder = (off_t)hdGeometry.heads in fssh_ioctl()
192 * hdGeometry.sectors * 512; in fssh_ioctl()
193 off_t deviceSize = bytesPerCylinder * hdGeometry.cylinders; in fssh_ioctl()
196 geometry->head_count = hdGeometry.heads; in fssh_ioctl()
198 geometry->sectors_per_track = hdGeometry.sectors; in fssh_ioctl()