From: Liu Yuan <tailai.ly at taobao.com> Use plain implementation for core IO path. This greately reduce the complexity of farm recovery handling. With this patch, Farm will operate *entirely* the same as plain store for IO and recovery handling. Farm and Plain store will share core IO functions completely. Liu Yuan (6): farm: use plain implementation for core IO path plain: fix init_objlist_and_vdi_bitmap() plain: clean up stale directory at startup farm: use default_format for formatting farm: rework trunk logic test: add a test for cluster wide snapshot collie/cluster.c | 2 +- sheep/farm/farm.c | 546 ++------------------------------------------------- sheep/farm/farm.h | 14 +- sheep/farm/trunk.c | 362 ++++------------------------------ sheep/ops.c | 6 +- sheep/plain_store.c | 65 ++++-- sheep/sheep_priv.h | 17 +- tests/030 | 46 +++++ tests/030.out | 7 + tests/group | 1 + 10 files changed, 174 insertions(+), 892 deletions(-) create mode 100755 tests/030 create mode 100644 tests/030.out -- 1.7.10.2 |