[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V7 2/6] qcow2: add error message in qcow2_write_
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH V7 2/6] qcow2: add error message in qcow2_write_snapshots() |
Date: |
Fri, 20 Dec 2013 14:48:54 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Dec 05, 2013 at 08:02:48PM +0800, Wenchao Xia wrote:
> @@ -227,24 +236,40 @@ static int qcow2_write_snapshots(BlockDriverState *bs)
>
> ret = bdrv_pwrite(bs->file, offset, &h, sizeof(h));
> if (ret < 0) {
> + error_setg_errno(errp, -ret,
> + "Failed in write of snapshot header at %"
> + PRIi64 " with size %d",
> + offset, (int)sizeof(h));
The casts in this patch are not necessary:
size_t == %zu
ssize_t == %zd
(Very minor point but in case you respin)
- [Qemu-devel] [PATCH V7 0/6] qcow2: rollback the modification on fail in snapshot creation, Wenchao Xia, 2013/12/05
- [Qemu-devel] [PATCH V7 5/6] blkdebug: add debug events for snapshot, Wenchao Xia, 2013/12/05
- [Qemu-devel] [PATCH V7 6/6] qemu-iotests: add test for qcow2 snapshot, Wenchao Xia, 2013/12/05
- Re: [Qemu-devel] [PATCH V7 0/6] qcow2: rollback the modification on fail in snapshot creation, Wenchao Xia, 2013/12/08
- Re: [Qemu-devel] [PATCH V7 0/6] qcow2: rollback the modification on fail in snapshot creation, Wenchao Xia, 2013/12/12
- Re: [Qemu-devel] [PATCH V7 0/6] qcow2: rollback the modification on fail in snapshot creation, Wenchao Xia, 2013/12/17