Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not pass images_dir_fd option when using pycriu #2419

Open
prenit-wankhede opened this issue Jun 5, 2024 · 2 comments
Open

Can not pass images_dir_fd option when using pycriu #2419

prenit-wankhede opened this issue Jun 5, 2024 · 2 comments

Comments

@prenit-wankhede
Copy link

When trying to use pycriu to dump a python process, it is throwing error

import os
from pycriu.criu import criu

c=criu()
f = os.open("dummy", os.O_DIRECTORY)
c.opts.images_dir_fd = f
c.use_binary("/home/ec2-user/criu/criu/criu/criu")
c.dump()

python does not allow getting file descriptors for directories and then write files in that directory.

Has anyone use pycriu library and successfully dumped the process?

Please help.

@adrianreber
Copy link
Member

Please do not add the same question to multiple tickets.

Take a look at p.haul which uses pycriu: https://github.com/checkpoint-restore/p.haul/

Copy link

github-actions bot commented Jul 7, 2024

A friendly reminder that this issue had no activity for 30 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants