[sheepdog] [PATCH v2 0/4] improve "dog vdi check" for the case of zones_nr < inode->copies

Hitoshi Mitake mitake.hitoshi at gmail.com
Sat Jan 11 12:16:40 CET 2014


This patchset improves "dog vdi check" for the condition of a number of zones is
less than a number of copies. Previous vdi check rised panic when it faces the
condition. 

The problem was reported by Marcin Mirosław.

v2: rename some variables

Hitoshi Mitake (4):
  tests/fucntional: add a function for invoking sheep with zone
  tests/functional: add a new test for vdi check with the condition
    nr_zones < inode->nr_copies
  dog: caliculate a number of zones
  dog: use a minimum number of copies and zones for vdi checking

 dog/dog.c                  | 13 +++++++++++++
 dog/dog.h                  |  1 +
 dog/vdi.c                  | 19 ++++++++++++-------
 tests/functional/083       | 40 ++++++++++++++++++++++++++++++++++++++++
 tests/functional/083.out   | 11 +++++++++++
 tests/functional/common.rc | 14 ++++++++++++--
 tests/functional/group     |  1 +
 7 files changed, 90 insertions(+), 9 deletions(-)
 create mode 100755 tests/functional/083
 create mode 100644 tests/functional/083.out

-- 
1.8.1.2




More information about the sheepdog mailing list