sheepdog: implement SD_OP_FLUSH_VDI operation
authorLiu Yuan <tailai.ly@taobao.com>
Tue, 3 Apr 2012 20:03:58 +0000 (04:03 +0800)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Apr 2012 12:54:41 +0000 (14:54 +0200)
commit47622c44d0d9a717c1a8f7f5fec6c25ff3b30eec
tree5e9b13491e7a0c4df7d9192d802d24c839169939
parentf6801b83d0e77ca025867800d805ee80f6bda938
sheepdog: implement SD_OP_FLUSH_VDI operation

Flush operation is supposed to flush the write-back cache of
sheepdog cluster.

By issuing flush operation, we can assure the Guest of data
reaching the sheepdog cluster storage.

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