Re: [Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-14 Thread Markus Armbruster
Einar Lueck writes: > On 01/14/2013 02:23 PM, Markus Armbruster wrote: >> Einar Lueck writes: >> >>> This patch extends the function hd_geometry_guess. If no geo could >>> be guessed via guess_disk_lchs, a new function called guess_disk_pchs is >>> called. The latter utilizes HDIO_GET_GEO ioctl

Re: [Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-14 Thread Einar Lueck
On 01/14/2013 02:23 PM, Markus Armbruster wrote: Einar Lueck writes: This patch extends the function hd_geometry_guess. If no geo could be guessed via guess_disk_lchs, a new function called guess_disk_pchs is called. The latter utilizes HDIO_GET_GEO ioctl to ask the underlying disk for geometr

Re: [Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-14 Thread Markus Armbruster
Einar Lueck writes: > This patch extends the function hd_geometry_guess. If no geo could > be guessed via guess_disk_lchs, a new function called guess_disk_pchs is > called. The latter utilizes HDIO_GET_GEO ioctl to ask the underlying disk > for geometry. > If this is not successful (e.g. image f

[Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-11 Thread Einar Lueck
Hi, here is a reworked version. V1 -> V2: * removed useless code movements * corrected terminology into logical and physical CHS and structured/layered functions accordingly Einar Lueck (1): hd-geometry.c: Integrate HDIO_GETGEO in guessing hw/hd-geometry.c | 45 +

[Qemu-devel] [PATCH V2] hd-geometry.c: Integrate HDIO_GETGEO in guessing

2013-01-11 Thread Einar Lueck
This patch extends the function hd_geometry_guess. If no geo could be guessed via guess_disk_lchs, a new function called guess_disk_pchs is called. The latter utilizes HDIO_GET_GEO ioctl to ask the underlying disk for geometry. If this is not successful (e.g. image files) geometry is derived from t