]> git.proxmox.com Git - qemu.git/commit - block/sheepdog.c
sheepdog: implement direct write semantics
authorLiu Yuan <tailai.ly@taobao.com>
Thu, 10 Jan 2013 08:03:47 +0000 (16:03 +0800)
committerKevin Wolf <kwolf@redhat.com>
Mon, 14 Jan 2013 09:06:56 +0000 (10:06 +0100)
commit0e7106d8b5f7ef4f9df10baf1dfb3db482bcd046
tree1f5f6b306b7a207492df5b36caeba1657bf96677
parent8e895599a1beb250ebca00e83b5fae6a828d2171
sheepdog: implement direct write semantics

Sheepdog supports both writeback/writethrough write but has not yet supported
DIRECTIO semantics which bypass the cache completely even if Sheepdog daemon is
set up with cache enabled.

Suppose cache is enabled on Sheepdog daemon size, the new cache control is

cache=writeback # enable the writeback semantics for write
cache=writethrough # enable the emulated writethrough semantics for write
cache=directsync # disable cache competely

Guest WCE toggling on the run time to toggle writeback/writethrough is also
supported.

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