[CRIU] [PATCH] img: Remove empty lazy images after dump

Pavel Emelyanov xemul at parallels.com
Fri May 29 05:33:14 PDT 2015


On 05/29/2015 02:59 PM, Cyrill Gorcunov wrote:
> On Fri, May 29, 2015 at 02:45:57PM +0300, Pavel Emelyanov wrote:
>> If dump doesn't generate data into some image file the respective file
>> is not created at all as it used to be in 1.5. This brings potential
>> problem -- if the file with the image name exists during dump (e.g. a
>> dump file left from previous, maybe unsuccessful, dump) then restore
>> would pick this file and read bad/wrong/fake data from it.
>>
>> To return the proper behavior back the file with the name of empty image
>> should be removed.
>>
>> Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
>> ---
> 
> Heh. Maybe it worth to add some unique signature into image headers
> (uuid or something) which would make criu be sure that image belong
> the dump?

The image can belong to dump, but left from previous criu run. This
image should also be avoided.



More information about the CRIU mailing list