[sheepdog] [PATCH] sheep: flush cache for snapshot creation

MORITA Kazutaka morita.kazutaka at gmail.com
Fri Jun 7 02:38:57 CEST 2013


At Thu,  6 Jun 2013 20:14:12 +0800,
Liu Yuan wrote:
> 
> This fixes a panic for such case with object cache enabled:
> 
> 1 VM is running and take a live snapshot by qemu-img or collie
> 2 after snapshoting, there are some dirty objects in the cache
> 3 sheep will try to push these dirty objects but sheep gateway return READONLY
> 4 sheep gat paniced because pusher will assume it never fails
> 
> Signed-off-by: Liu Yuan <namei.unix at gmail.com>
> ---
>  sheep/vdi.c |   16 ++++++++++++++++
>  1 file changed, 16 insertions(+)

Applied, thanks!

Kazutaka



More information about the sheepdog mailing list