At Thu, 10 Jan 2013 16:03:47 +0800, Liu Yuan wrote: > > From: Liu Yuan <tailai...@taobao.com> > > 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.kazut...@lab.ntt.co.jp> > Cc: Kevin Wolf <kw...@redhat.com> > Cc: Stefan Hajnoczi <stefa...@gmail.com> > Signed-off-by: Liu Yuan <tailai...@taobao.com> > --- > v2: adopt to current emulated writethrough cache setting > > block/sheepdog.c | 70 > +++++++++++++++++++++++++++++++----------------------- > 1 file changed, 40 insertions(+), 30 deletions(-)
Reviewed-by: MORITA Kazutaka <morita.kazut...@lab.ntt.co.jp>