[sheepdog] [PATCH] collie: add command 'collie vdi reset' to reset a cloned VDI

MORITA Kazutaka morita.kazutaka at gmail.com
Wed Aug 29 09:08:04 CEST 2012


At Wed, 29 Aug 2012 13:57:57 +0800,
levin li wrote:
> 
> From: levin li <xingke.lwp at taobao.com>
> 
> With this command, we can reset a cloned VDI to its initial state as
> it's just cloned from a snapshot, the usage is simple:
> 
> $ collie vdi reset cloned_vdi_name
> 
> Signed-off-by: levin li <xingke.lwp at taobao.com>
> ---
>  collie/collie.h |    1 +
>  collie/common.c |   35 ++++++++++++++++++++++++++++++
>  collie/vdi.c    |   63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 99 insertions(+), 0 deletions(-)

What is the use case of this command?  Isn't it enough to delete the
vdi and recreate it from snapshots?

Thanks,

Kazutaka



More information about the sheepdog mailing list