[CRIU] About file lock

Gu Zheng cengku.gu at huawei.com
Sat Sep 29 04:32:45 EDT 2012


On 2012/9/29 15:00, Pavel Emelyanov wrote:
>> So I read the CRIU codes,and find that CRIU does not handle file locks.And I look up the TODO list on CRIU main page,do not find 
>> any solution or plan about file locks.
> 
> CRIU doesn't handle file locks, indeed.
> 
>> Is it unnecessary to handle the file locks? or an oversight? Thanks!
> 
> It's necessary to do it, but it's hard. You should somehow guarantee, that once you
> terminated the processes you've dumped and the locks got dropped, this won't affect
> anyone else. 

Sorry ,I don't clearly understand what the effect is,can you show me an example and explain it? Thanks :)

>This can be more or less safely be achieved by assuming that all flock
> users live in the same container and support flocks for this case only.

This can handle the problem that you mentioned above only in the case that you dump and restore whole tasks in the container,is it right?

> 
>> _______________________________________________
>> CRIU mailing list
>> CRIU at openvz.org
>> https://openvz.org/mailman/listinfo/criu
>>
> 
> 
> 
> 




More information about the CRIU mailing list