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 |