[CRIU] [PATCH] zdtm: don't create loops of bind mounts

Pavel Emelyanov xemul at parallels.com
Sat Apr 6 14:53:42 EDT 2013


On 04/06/2013 01:18 AM, Andrey Vagin wrote:
> Before this patch crtools/test is bound to crtools/test/dump/crtools.XXXXXXX
> 
> It's a main reason why sometimes "make clean" deletes all content
> from crtools/test.

Sometimes?

> Signed-off-by: Andrey Vagin <avagin at openvz.org>
> ---
>  test/zdtm.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/zdtm.sh b/test/zdtm.sh
> index 31b2cbd..f71bbed 100755
> --- a/test/zdtm.sh
> +++ b/test/zdtm.sh
> @@ -221,7 +221,7 @@ start_test()
>  	else
>  		if [ -z "$ZDTM_ROOT" ]; then
>  			mkdir dump
> -			ZDTM_ROOT=`mktemp -d dump/crtools-root.XXXXXX`
> +			ZDTM_ROOT=`mktemp -d /tmp/crtools-root.XXXXXX`
>  			ZDTM_ROOT=`readlink -f $ZDTM_ROOT`
>  			mount --bind . $ZDTM_ROOT || return 1
>  		fi
> 




More information about the CRIU mailing list