[CRIU] CRIU saving/restoring fd for the device file

Zmudzinski, Krystof C krystof.c.zmudzinski at intel.com
Thu Oct 2 08:08:35 PDT 2014


I have finally figured out that I can indeed talk to the driver just fine.  The problem is that my code checks for errno even when ioctls don’t return -1.  For some reason, after resume, errno is set to EINTR.  Is it possible that criu causes this by sending a signal to the my app during suspend?

Shouldn’t errno be cleared by criu on resume?

Krystof

From: criu-bounces at openvz.org [mailto:criu-bounces at openvz.org] On Behalf Of Zmudzinski, Krystof C
Sent: Tuesday, September 30, 2014 1:11 PM
To: beproject criu
Cc: CRIU
Subject: Re: [CRIU] CRIU saving/restoring fd for the device file

Yes, the fd is restored but ioctls fail.  My driver is a misc character driver although I could probably change it to something else.  I haven’t figured out a way to reconnect the fd back to the driver.

Krystof

From: beproject criu [mailto:beprojectcriu at gmail.com]
Sent: Monday, September 29, 2014 12:21 PM
To: Zmudzinski, Krystof C
Subject: CRIU saving/restoring fd for the device file

Sir,
I am working on criu, i am not able to dump process tree because of fd of a device file.You have mentioned in your query of CRIU  mailing list that you were able to succesfully save/restore fd of a device file.
Can you tell me that how did you save fd of a file?

It will be a major step for me if i am able to store fd of a device file.

Thanks,
Nilesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20141002/7c201de0/attachment-0001.html>


More information about the CRIU mailing list