[CRIU] [PATCH] files: ghost -- Make sure we never have ghost bit in id
Cyrill Gorcunov
gorcunov at openvz.org
Thu Jun 13 07:16:32 EDT 2013
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;
--
1.8.1.4
More information about the CRIU
mailing list