[CRIU] [PATCHv0 1/1] tmpfiles: implement user tmp files feature

Pavel Emelyanov xemul at parallels.com
Thu Dec 24 02:15:26 PST 2015


On 12/21/2015 11:06 AM, Andrew Vagin wrote:
> On Sun, Dec 20, 2015 at 08:35:50PM +0300, Eugene Batalov wrote:
>> From: Svyatoslav Vlasov <svloyso at gmail.com>
>>
>> Add new command line option --tmp-file, which allows user to
>> add files that can be lost between checkpoint and restore to the dump.
>> User files are stored in .tar.gz archive.
>> Tar command does all the file paths and attributes related work.
> 
> I think we don't need this option in CRIU. If you don't snapshot a file
> system, a problem with tmp files is only one of your problems
> 
> I think not many users use CRIU directly and you call CRIU from scriptrs
> or other programs, you can use post-dump and pre-restore to restore all
> required files.

OK, makes sense. But since this is quite generic feature, I think it
makes sense just to provide such a script (in scripts/) directory with
a help text how to feed one to criu dump/restore actions and the list
of files to be taken into the script.

Eugene, Svyatoslav, would you rework the patch accordingly?

-- Pavel



More information about the CRIU mailing list