[sheepdog] [PATCH v2 0/6] refactor sheep/vdi.c

Liu Yuan namei.unix at gmail.com
Thu Apr 25 11:30:22 CEST 2013


From: Liu Yuan <tailai.ly at taobao.com>

v2:
 - prefix some helper functions
 - update the comments
 - discard xmalloc patch
 - initialize iocb inside the definition

This patchset is the first round to refactor sheep/vdi.c

patch [1-3] are prepare patch.
patch [4] the main refactoring.

Liu Yuan (5):
  sheep: remove nr_copies parameter
  sheep: unify the snapid manipulation and put it in vdi_iocb
  sheep: pass vdi_iocb for vdi deletion
  sheep: refactor vdi lookup, create, delete operation
  tests/039: fix the output for the refactored vdi code

 sheep/ops.c        |   88 ++++++++------
 sheep/sheep_priv.h |   18 +--
 sheep/vdi.c        |  342 +++++++++++++++++++++++++---------------------------
 tests/039.out      |    2 +-
 4 files changed, 225 insertions(+), 225 deletions(-)

-- 
1.7.9.5




More information about the sheepdog mailing list