[sheepdog] [PATCH v2 0/7] different redundancy level for different VDIs

levin li levin108 at gmail.com
Mon Aug 6 10:40:21 CEST 2012


From: levin li <xingke.lwp at taobao.com>

v1 ---- > v2 :
1. rename ctime in vdi.c to create_time
2. rename get_*_copies to get_*_copy_number
3. merge vdi_copy.c to vdi.c
-----------------------------------------
With this patch set, we don't need to specify copies number when formating
the cluster, there's no global redundancy level any more, instead, we need
to specify copies number for every VDI when creating a new one, like this:

# collie vdi create test 10G -c 3

If the -c is not specified, then use the default copies number 3

levin li (7):
  sheep: use struct vdi_iocb to simplify the vdi_create api
  collie: add -c for 'collie vdi create' to specify redundancy level
    for per-vdi
  sheep: rename ctime to create_time in vdi.c
  sheep: add vdi_copy tree to store copies number for every VDI
  sheep: use the specified copies number for IO requests
  sheep: cleanup the global copies number
  collie: remove copies from 'collie cluster format'

 collie/cluster.c         |   17 +---
 collie/vdi.c             |   33 +++++--
 include/sheepdog_proto.h |    2 +-
 sheep/farm/trunk.c       |    2 +-
 sheep/gateway.c          |    4 +-
 sheep/group.c            |   50 ++--------
 sheep/ops.c              |   43 ++++----
 sheep/recovery.c         |    4 +-
 sheep/request.c          |    2 +-
 sheep/sheep_priv.h       |   26 ++++--
 sheep/store.c            |   55 +---------
 sheep/vdi.c              |  245 ++++++++++++++++++++++++++++++++++-----------
 12 files changed, 269 insertions(+), 214 deletions(-)




More information about the sheepdog mailing list