[CRIU] Re: [PATCH 0/7] fifo c/r updated

Pavel Emelyanov xemul at parallels.com
Sun Jul 1 09:28:28 EDT 2012


On 07/01/2012 04:57 PM, Cyrill Gorcunov wrote:
> On Sun, Jul 01, 2012 at 04:46:57PM +0400, Pavel Emelyanov wrote:
>>>
>>> Look, I can't write data to say ro fifo, thus I restore it on
>>> fake fifo end which has rw  mode.
>>
>> Ah, I see :(
> 
> Update attached (I'm addressing now Andrew's concerns on test case)
> 
> 	Cyrill

Так, стоп! А вот тут не косяк:

> +	if (info->restore_data) {
> +		if (restore_pipe_data(CR_FD_FIFO_DATA, fake_fifo, info->fe.id,
> +				      info->bytes, info->off)) {
> +			close(new_fifo);
> +			new_fifo = -1;
> +		}
> +	}

Почему pipe_data ресторится по id, а не по pipe_id?



More information about the CRIU mailing list