[CRIU] [PATCH 5/8] read mode pre-dump implementation

Radostin Stoyanov rstoyanov1 at gmail.com
Wed Oct 9 17:41:05 MSK 2019


On 03/10/2019 15:09, Abhishek Dubey wrote:
> +		ret = vmsplice(ppb->p[1], &bufvec, 1, SPLICE_F_NONBLOCK);
> +
> +		if (ret == -1 || ret != bytes_read) {
> +			pr_err("vmsplice: Failed to splice user buffer to pipe %ld\n", ret);
> +			munmap(userbuf, BUFFER_SIZE);
> +			return -1;
> +		}

Why do we set SPLICE_F_NONBLOCK and fail on ret != bytes_read ?

Radostin


More information about the CRIU mailing list