[CRIU] [PATCH 1/3] protobuf: use generic show function for ghost file

Kinsbursky Stanislav skinsbursky at openvz.org
Fri Jul 20 04:03:39 EDT 2012


From: Stanislav Kinsbursky <skinsbursky at openvz.org>

Signed-off-by: Stanislav Kinsbursky <skinsbursky at openvz.org>
---
 cr-show.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
-------------- next part --------------
diff --git a/cr-show.c b/cr-show.c
index 9703ac2..3824eea 100644
--- a/cr-show.c
+++ b/cr-show.c
@@ -95,14 +95,7 @@ void show_remap_files(int fd, struct cr_options *o)
 
 void show_ghost_file(int fd, struct cr_options *o)
 {
-	GhostFileEntry *gfe;
-
-	pr_img_head(CR_FD_GHOST_FILE);
-	if (pb_read_eof(fd, &gfe, ghost_file_entry) > 0) {
-		pr_msg("uid %u god %u mode %#x\n", gfe->uid, gfe->gid, gfe->mode);
-		ghost_file_entry__free_unpacked(gfe, NULL);
-	}
-	pr_img_tail(CR_FD_GHOST_FILE);
+	pb_show_plain(fd, ghost_file_entry);
 }
 
 void __show_pipes_data(int fd, struct cr_options *o)


More information about the CRIU mailing list