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

Pavel Emelyanov xemul at parallels.com
Sun Jul 1 08:46:57 EDT 2012


On 07/01/2012 04:45 PM, Cyrill Gorcunov wrote:
> On Sun, Jul 01, 2012 at 04:38:42PM +0400, Pavel Emelyanov wrote:
>>> +	if (!S_ISFIFO(gfe.mode)) {
>>
>> This should be S_ISREG
>>
> 
> Done.
> 
>>> +
>>> +	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;
>>> +		}
>>> +	}
>>
>> Fifo data restore is not a part of fifo virtual opening by open_fe_fd.
>> This part should be in static int open_fifo_fd(struct file_desc *d).
> 
> 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 :(

> 	Cyrill
> .
> 



More information about the CRIU mailing list