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 generation of > raw_co_get_block_status()'s return value along the way. > > > v4: > - Patch 1: Use DIV_ROUND_UP() for the range until the image end instead > of truncating integer division [Eric] > - Patch 3: > - Use qemu-img resize -f raw instrad of truncate [Eric] > - Use qemu with HMP qemu-io instead of qemu-io itself; drop the > qemu-img test [Eric]
Reviewed-by: Kevin Wolf <kw...@redhat.com>