[CRIU] [PATCH 2/7] pycriu: add python package, v3
Pavel Emelyanov
xemul at parallels.com
Tue Dec 2 06:20:18 PST 2014
>> Let's make this call be ParseFromFile and pass here not
>> sting, but an object from which we can read().
>>
>
> It might be useful to have both ParseFromString and ParseFromFile.
> I'll take a look.
Having a filename at hands in criu_image class can be used to
auto-detect the format by the filename "extension". E.g. the .img
is the criu image, .txt is human-readable, .json is JSON and .xml
is youknowwhat.
So the convertion would look like
crit convert --in reg-files.txt --out reg-files.img and it's
clear what user wants.
Thanks,
Pavel
More information about the CRIU
mailing list