v2: - rebased on top of my patch 'remove sd_*_req and sd_*_rsp' - fix SD_RES_NO_VDI error - add test
This series makes sheep return SD_RES_READONLY when write requests are sent to the snapshot data objects, and notifies the running VMs that they need to reload the vdi objects. MORITA Kazutaka (6): move vdi_is_snapshot() to sheepdog_proto.h sheep: make oid_to_vid support any kind of objects sheep: store snapshot vid information in memory sheep: return SD_RES_READONLY when write requests are sent to snapshots sheep: make SD_OP_GET_INFO a cluster operation tests: add test to check live snapshot collie/common.c | 7 +-- collie/node.c | 2 +- collie/vdi.c | 20 ++++---- include/sheep.h | 6 +-- include/sheepdog_proto.h | 17 +++++-- sheep/gateway.c | 10 ++++ sheep/group.c | 14 ++--- sheep/ops.c | 23 +++++---- sheep/plain_store.c | 7 +-- sheep/sheep_priv.h | 12 ++++- sheep/vdi.c | 129 ++++++++++++++++++++++++++--------------------- tests/059 | 45 +++++++++++++++++ tests/059.out | 25 +++++++++ tests/group | 1 + 14 files changed, 211 insertions(+), 107 deletions(-) create mode 100755 tests/059 create mode 100644 tests/059.out -- 1.8.1.3.566.gaa39828 -- sheepdog mailing list sheepdog@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/sheepdog