Peter Maydell cfc87e00c2 block/vpc.c: Handle write failures in get_image_offset()
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 that it can return the error to its caller.

get_sector_offset() is only used for reads, but we move it to the
same API for consistency.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2017-07-18 15:14:35 +02:00
..
2017-07-18 15:14:35 +02:00
2017-07-18 13:09:51 +01:00
2017-07-14 09:36:40 +01:00
2017-07-11 17:44:57 +02:00
2017-07-14 09:36:40 +01:00
2017-07-17 11:28:15 +08:00
2017-07-17 11:34:11 +08:00
2017-07-17 11:34:11 +08:00
2017-06-20 14:31:31 +02:00
2017-07-14 09:36:40 +01:00
2017-07-17 11:34:20 +08:00
2017-07-17 11:34:20 +08:00
2017-07-17 11:28:15 +08:00
2017-07-17 11:28:15 +08:00