[sheepdog] [PATCH 0/3] modify sheep and collie cache options

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Thu Aug 30 11:02:55 CEST 2012


BDRV_O_NOCACHE in qemu code does not mean disabling write cache.  It
just means that qemu doesn't use a host page cache when it uses a file
protocol.  I'm considering that we don't need to provide a way to
disable write cache of sheepdog from qemu.

With this patch, if we add a '-w' option to sheep command line, object
cache will be enabled always.

MORITA Kazutaka (3):
  sheep: use qemu cache option to use writeback/writethrough mode
  collie: refine cache option of vdi write
  tests: use new cache options

 collie/collie.h      |    1 +
 collie/vdi.c         |   12 +++---
 sheep/object_cache.c |   83 ++++++++++++-------------------------------------
 sheep/request.c      |    2 +-
 sheep/sheep.c        |   13 +------
 sheep/sheep_priv.h   |    1 -
 tests/018            |    4 +-
 tests/019            |    2 +-
 tests/020            |    2 +-
 9 files changed, 35 insertions(+), 85 deletions(-)

-- 
1.7.2.5




More information about the sheepdog mailing list