]> git.proxmox.com Git - qemu.git/commit - block/sheepdog.c
sheepdog: pass copy_policy in the request
authorLiu Yuan <namei.unix@gmail.com>
Wed, 23 Oct 2013 08:51:52 +0000 (16:51 +0800)
committerKevin Wolf <kwolf@redhat.com>
Mon, 28 Oct 2013 16:40:00 +0000 (17:40 +0100)
commit1841f8801c8898fa57c66e27a08541ffcc6f3948
tree6d32d358a5a5c695ea968733a77fbf00bad260a8
parent29a67f7e9204a25bc4b6221f287ad0ae38d8cbdc
sheepdog: pass copy_policy in the request

Currently copy_policy isn't used. Recent sheepdog supports erasure coding, which
make use of copy_policy internally, but require client explicitly passing
copy_policy from base inode to newly creately inode for snapshot related
operations.

If connected sheep daemon doesn't utilize copy_policy, passing it to sheep
daemon is just one extra null effect operation. So no compatibility problem.

With this patch, sheepdog can provide erasure coded volume for QEMU VM.

Cc: Kevin Wolf <kwolf@redhat.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>
Acked-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/sheepdog.c