sheepdog: fix clone operation by 'qemu-img create -b'
commit9f23fce7b2e78b917f03ccd366e3e151c0a1a419
authorLiu Yuan <namei.unix@gmail.com>
Fri, 3 Jan 2014 12:13:12 +0000 (3 20:13 +0800)
committerKevin Wolf <kwolf@redhat.com>
Wed, 22 Jan 2014 11:07:16 +0000 (22 12:07 +0100)
treeb4685753f05b80200bd7be9a79c4a8aa2570164d
parentcf7f616b9d846b1cc21c7b692b5c9ff6f757a5e7
sheepdog: fix clone operation by 'qemu-img create -b'

We should pass base_inode->vdi_id to base_vdi_id of SheepdogVdiReq so that sheep
can create a clone instead a fresh volume.

This fixes following command:

qemu-create -b sheepdog:base sheepdog:clone

so users can boot sheepdog:clone as a normal volume.

Cc: qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c