Re: [Qemu-devel] [PATCH] block/vpc.c: Handle write failures in get_image_offset()

2017-07-13 Thread Peter Maydell
On 13 July 2017 at 13:32, Kevin Wolf wrote: > Am 09.07.2017 um 23:07 hat Peter Maydell geschrieben: >> Coverity (CID 1355236) points out that get_image_offset() doesn't check that >> it actually succeeded in writing the updated block bitmap to the file. >> Check the error return from bdrv_pwrite_s

Re: [Qemu-devel] [PATCH] block/vpc.c: Handle write failures in get_image_offset()

2017-07-13 Thread Kevin Wolf
Am 09.07.2017 um 23:07 hat Peter Maydell geschrieben: > Coverity (CID 1355236) points out that get_image_offset() doesn't check that > it actually succeeded in writing the updated block bitmap to the file. > Check the error return from bdrv_pwrite_sync() and propagate an error > response back up to

[Qemu-devel] [PATCH] block/vpc.c: Handle write failures in get_image_offset()

2017-07-09 Thread Peter Maydell
Coverity (CID 1355236) points out that get_image_offset() doesn't check that it actually succeeded in writing the updated block bitmap to the file. Check the error return from bdrv_pwrite_sync() and propagate an error response back up to the function which calls get_image_offset() for a write so th