[CRIU] Re: [PATCH 2/4] restore: Add checkpoint/restore for /proc/pid/exe symlink

Cyrill Gorcunov gorcunov at openvz.org
Tue Feb 7 07:36:49 EST 2012


On Tue, Feb 07, 2012 at 04:32:34PM +0400, Pavel Emelyanov wrote:
> > 
> > More detailed -- the image will look like
> > 
> > 	| magic
> > 	+--
> > 	| cwd entry
> > 	+--
> > 	| exe entry
> > 	+--
> > 	| all other entries
> > 	  ...
> 
> This doesn't matter where in the file each entry is. An fdinfo entry has an addr in 
> it and you should check it anyway.
> 

Yes, as I replied -- I'll change the code and will add a comment. But also note
that we do dump special fdinfo first on purpose -- the restorer will not waste
time skipping unneeded entries. So it does matter where this entries live, still
the code is able to work correctly even if special entries are placed at the
end of the file :) Ie dump special entries early -- it's just optimization
for restorer.

	Cyrill


More information about the CRIU mailing list