[CRIU] [PATCH 5/7] ghost-files: Save device and inode in image

Pavel Emelyanov xemul at parallels.com
Mon Dec 3 13:56:38 EST 2012


On 12/03/2012 07:27 PM, Cyrill Gorcunov wrote:
> 
> Because we need to lookup for ghost files from
> inotify system where we only have device/inode
> as a key, we save dev/ino in ghost image entry.
> 
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
>  files-reg.c               | 11 +++++++++++
>  include/files-reg.h       | 16 ++++++++--------
>  protobuf/ghost-file.proto |  3 +++
>  3 files changed, 22 insertions(+), 8 deletions(-)
> 


> +	gf->has_dev = gfe->has_dev;
> +	gf->has_ino = gfe->has_ino;
> +	gf->dev = gfe->dev;
> +	gf->ino = gfe->ino;
> +

No need in has_dev on our structures. ino == 0 is enough for "absent".


More information about the CRIU mailing list