[sheepdog] [PATCH v2 0/2] vdi rollback support

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Mon Sep 3 18:38:10 CEST 2012


At Sat,  1 Sep 2012 21:18:29 +0900,
MORITA Kazutaka wrote:
> 
> Changes from v1 are:
>  - delete the current state before rolling back to the snapshot
>  - add test
> 
> With this version, I think "collie vdi rollback" will work as everyone
> expects.
> 
> Here is an example:
> 
>   $ collie vdi create test 4G
>   $ echo snap1 | collie vdi write test 0 512
>   $ collie vdi snapshot test -s snap1
>   $ echo snap2 | collie vdi write test 0 512
>   $ collie vdi snapshot test -s snap2
>   $ collie vdi read test 0 512
>   snap2
>   $ collie vdi rollback test -s snap1
>   $ collie vdi read test 0 512
>   snap1
>   $ collie vdi rollback test -s snap2
>   $ collie vdi read test 0 512
>   snap2
>   $ collie vdi list
>     Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
>   s test         1  4.0 GB  4.0 MB  0.0 MB 2012-09-01 09:29   7c2b25     1         snap1
>   s test         2  4.0 GB  4.0 MB  0.0 MB 2012-09-01 09:30   7c2b26     1         snap2
>     test         3  4.0 GB  0.0 MB  4.0 MB 2012-09-01 09:30   7c2b29     1
> 
> 
> MORITA Kazutaka (2):
>   collie: add vdi rollback support
>   tests: add test of vdi rollback
> 
>  collie/vdi.c  |   67 ++++++++++++++++++++++++++++++++++++++++++++++++--------
>  man/collie.8  |    3 ++
>  tests/039     |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++
>  tests/039.out |   54 +++++++++++++++++++++++++++++++++++++++++++++
>  tests/group   |    1 +
>  5 files changed, 178 insertions(+), 10 deletions(-)
>  create mode 100755 tests/039
>  create mode 100644 tests/039.out

Applied.

Thanks,

Kazutaka



More information about the sheepdog mailing list