[sheepdog] [PATCH] dog: add 'vdi cache purge' option

MORITA Kazutaka morita.kazutaka at gmail.com
Thu Aug 22 03:13:56 CEST 2013


At Wed, 21 Aug 2013 18:55:58 +0800,
Liu Yuan wrote:
> 
> This command is intended to be used when
> 
> 1. cache of some vdi isn't clean on node A, e.g, due to sheep crash
> 2. This vdi is run on other node B.
> 
> After some time, A comes back without manually 'rm cache/', the cache about this
> vdi is stale. For this case, we provide a manual option for users to purge the
> stale cache.
> 
> usage:
>  $ dog vdi cache purge image # purge cache of image
>  $ dog vdi cache purge # purge cache of all the images
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  dog/vdi.c                |   37 +++++++++++++++++++++++++++++++++++++
>  include/internal_proto.h |    1 +
>  sheep/ops.c              |   20 ++++++++++++++++++++
>  3 files changed, 58 insertions(+)

Applied, thanks.

Kazutaka



More information about the sheepdog mailing list