[CRIU] multiple open() on a file during restore

CRIU criu criuport at gmail.com
Thu Jun 25 23:47:36 PDT 2015


Hi,

Does CRIU do multiple open() on a regular file during restore? If yes,
multiple open() on some device files may lead to incorrect bookkeeping
inside the kernel driver.

Please correct me if my understanding is wrong. Thanks!

I see the following code being executed:
prepare_mappings() -> premap_priv_vmas()
->map_private_vma()->get_filemap_fd(vma)

This is followed by close(vma-e->fd)

-Lilo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20150625/449f3bf4/attachment.html>


More information about the CRIU mailing list