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

Cyrill Gorcunov gorcunov at gmail.com
Fri May 29 04:59:53 PDT 2015


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?


More information about the CRIU mailing list