Re: [Qemu-devel] [PATCH v4 0/3] raw-posix: Fix raw_co_get_block_status()

2014-10-29 Thread Stefan Hajnoczi
On Fri, Oct 24, 2014 at 12:57:57PM +0200, Max Reitz wrote: > raw_co_get_block_status() should return 0 and set *pnum to 0 after the > EOF; currently it does this merely by accident, so implement it > directly. Also, nb_sectors should be clamped against the image end. > > While doing that, centrali

Re: [Qemu-devel] [PATCH v4 0/3] raw-posix: Fix raw_co_get_block_status()

2014-10-28 Thread Kevin Wolf
Am 24.10.2014 um 12:57 hat Max Reitz geschrieben: > raw_co_get_block_status() should return 0 and set *pnum to 0 after the > EOF; currently it does this merely by accident, so implement it > directly. Also, nb_sectors should be clamped against the image end. > > While doing that, centralize the ge