[Qemu-devel] [PATCH 3/3] sheepdog: resend write requests when SD_RES_READONLY is received

2013-04-25 Thread MORITA Kazutaka
When a snapshot is taken from out side of qemu (e.g. qemu-img snapshot), write requests to the current vdi return SD_RES_READONLY. In this case, the sheepdog block driver needs to update the current inode to the latest one and resend the write requests. Signed-off-by: MORITA Kazutaka

Re: [Qemu-devel] [PATCH 3/3] sheepdog: resend write requests when SD_RES_READONLY is received

2013-04-25 Thread Stefan Hajnoczi
On Thu, Apr 25, 2013 at 07:37:43PM +0900, MORITA Kazutaka wrote: +/* update inode with the latest state */ +static int coroutine_fn reload_vdi_object(BDRVSheepdogState *s) +{ +SheepdogInode *inode; +int ret = 0, fd; +uint32_t vid; + +inode = (SheepdogInode