[CRIU] Re: [PATCH] show: logic for optionaly files introduced

Pavel Emelyanov xemul at parallels.com
Wed Feb 8 07:33:18 EST 2012


> @@ -194,6 +196,8 @@ struct cr_fdset *cr_fdset_open(int pid, unsigned long use_mask, struct cr_fdset
>  
>  		ret = open(path, O_RDWR | O_CREAT | O_EXCL, CR_FD_PERM);
>  		if (ret < 0) {
> +			if (fdset_template[i].opt)
> +				continue;

Wrong. This is the place where we request for this file on dump stage
and thus it can't be optional.

>  			pr_perror("Unable to open %s", path);
>  			goto err;
>  		}


More information about the CRIU mailing list