[sheepdog] [PATCH v2 0/5] prohibit rolling back to the non-snapshot vdi

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Mar 11 08:07:06 CET 2013


This fixes the bug reported by Wenhao.

Changes from v1:
 - add check for rolling back to snap id zero
 - force snapshot id to be larger than zero

MORITA Kazutaka (5):
  sheep: return error if the requested snapshot is the current vdi
  collie: compare return values correctly
  test/039: add test of rollbacking to the non-snapshot vdi
  collie: use snapid zero for the current vdi
  collie: force snapshot id to be larger than zero

 collie/common.c |  4 +++-
 collie/vdi.c    | 11 +++++++----
 sheep/vdi.c     | 13 +++++++++++--
 tests/029.out   |  6 +++---
 tests/031.out   | 12 ++++++------
 tests/039       |  4 ++++
 tests/039.out   | 13 ++++++++-----
 tests/040.out   |  4 ++--
 tests/041.out   | 10 +++++-----
 tests/043.out   | 16 ++++++++--------
 tests/046.out   |  6 +++---
 tests/047.out   |  2 +-
 tests/048.out   |  4 ++--
 tests/052.out   | 18 +++++++++---------
 14 files changed, 72 insertions(+), 51 deletions(-)

-- 
1.8.1.3.566.gaa39828




More information about the sheepdog mailing list