[Qemu-devel] [PATCH for-2.6] vpc: fix return value check for blk_pwrite

2016-04-07 Thread Paolo Bonzini
bdrv_pwrite_sync used to return zero or negative error, while blk_pwrite returns the number of written bytes when successful. This caused VPC image creation to fail spectacularly: it wrote the first 512 bytes, and then exited immediately because of the non-zero answer from blk_pwrite. But the tru

Re: [Qemu-devel] [PATCH for-2.6] vpc: fix return value check for blk_pwrite

2016-04-08 Thread Kevin Wolf
Am 07.04.2016 um 16:52 hat Paolo Bonzini geschrieben: > bdrv_pwrite_sync used to return zero or negative error, while blk_pwrite > returns > the number of written bytes when successful. This caused VPC image creation > to fail spectacularly: it wrote the first 512 bytes, and then exited > immedi