[CRIU] [PATCH] files: ghost -- Make sure we never have ghost bit in id
Pavel Emelyanov
xemul at parallels.com
Thu Jun 13 11:40:49 EDT 2013
On 06/13/2013 03:16 PM, Cyrill Gorcunov wrote:
> Just to protect ourself from unpredicted changes.
>
> Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
> ---
> files-reg.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/files-reg.c b/files-reg.c
> index af619fd..5f3c271 100644
> --- a/files-reg.c
> +++ b/files-reg.c
> @@ -310,6 +310,8 @@ static int dump_ghost_remap(char *path, const struct stat *st, int lfd, u32 id)
> return -1;
>
> dump_entry:
> + BUG_ON(gf->id & REMAP_GHOST);
> +
> rpe.orig_id = id;
> rpe.remap_id = gf->id | REMAP_GHOST;
>
>
applied, thanks
More information about the CRIU
mailing list