]> xenbits.xensource.com Git - qemu-upstream-4.5-testing.git/commit
sheepdog: resend write requests when SD_RES_READONLY is received
authorMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Thu, 25 Apr 2013 16:19:54 +0000 (01:19 +0900)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 26 Apr 2013 11:26:28 +0000 (13:26 +0200)
commit13c31de2fdd534c065ce4710f6e8df3921e98c4f
tree754b5f7b68017f4bc0e9a8cf343f8f54e9099388
parent9ff53a0eb89afacfa1ba56b009d40be942d3bd63
sheepdog: resend write requests when SD_RES_READONLY is received

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 <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/sheepdog.c