[CRIU] [PATCH 2/2] zdtm:mnt_ext_dev: output a message if ZDTM_MNT_EXT_DEV is not set

Andrei Vagin avagin at virtuozzo.com
Fri Nov 18 16:26:12 PST 2016


On Fri, Nov 18, 2016 at 12:05:12PM +0300, Dmitrii Shcherbakov wrote:
> Should be easier to debug if the variable is not passed by accident.
> 
> Signed-off-by: Dmitrii Shcherbakov <dshcherbakov at virtuozzo.com>
> ---
>  test/zdtm/static/mnt_ext_dev.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/test/zdtm/static/mnt_ext_dev.c b/test/zdtm/static/mnt_ext_dev.c
> index 7c3bd56..2560953 100644
> --- a/test/zdtm/static/mnt_ext_dev.c
> +++ b/test/zdtm/static/mnt_ext_dev.c
> @@ -30,6 +30,7 @@ int main(int argc, char **argv)
>  	mkdir(dirname, 0777);
>  	loop = getenv("ZDTM_MNT_EXT_DEV");
>  	if (loop == NULL)
> +		pr_perror("ZDTM_MNT_EXT_DEV is not set");
Have you tested this patch?
>  		return 1;
>  
>  	if (mount(loop, dirname, "ext4", 0, NULL) == -1) {
> -- 
> 2.7.4
> 


More information about the CRIU mailing list