[CRIU] [PATCH 6/7] inotify: Use ghost files if the watchee is a deleted file

Pavel Emelyanov xemul at parallels.com
Mon Dec 3 15:17:47 EST 2012


On 12/03/2012 11:26 PM, Cyrill Gorcunov wrote:
> On Mon, Dec 03, 2012 at 10:55:55PM +0400, Pavel Emelyanov wrote:
>>
>>> +		gf = lookup_ghost_file_st(kdev_to_odev(iwe->s_dev), iwe->i_ino);
>>
>> Why kdev_to_odev? The device should be in one format on both sides.
> 
> Because fdinfo provides kernel's device while in ghost files we do use
> one obtained from stat call, so I needed to make a conversion here.
> 

That's restore time, both numbers came from image files.


More information about the CRIU mailing list