[CRIU] [PATCH 03/11] crtools: add a callback to show filelocks-%d.img

Qiang Huang h.huangqiang at huawei.com
Thu Jan 17 03:09:29 EST 2013


Add a callback for filelock's image show.

Originally-signed-off-by: Zheng Gu <cengku.gu at huawei.com>
Signed-off-by: Qiang Huang <h.huangqiang at huawei.com>
---
 cr-show.c         |    5 +++++
 include/crtools.h |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/cr-show.c b/cr-show.c
index 48031f8..25ebb91 100644
--- a/cr-show.c
+++ b/cr-show.c
@@ -119,6 +119,11 @@ void show_tty_info(int fd, struct cr_options *o)
 	pb_show_plain(fd, PB_TTY_INFO);
 }
 
+void show_file_locks(int fd, struct cr_options *o)
+{
+	pb_show_plain(fd, PB_FILE_LOCK);
+}
+
 void show_fs(int fd_fs, struct cr_options *o)
 {
 	pb_show_vertical(fd_fs, PB_FS);
diff --git a/include/crtools.h b/include/crtools.h
index a01f52e..7a28577 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -155,6 +155,7 @@ void show_fown_cont(void *p);
 void show_eventfds(int fd, struct cr_options *o);
 void show_tty(int fd, struct cr_options *o);
 void show_tty_info(int fd, struct cr_options *o);
+void show_file_locks(int fd, struct cr_options *o);
 
 int check_img_inventory(void);
 int write_img_inventory(void);
-- 
1.7.1




More information about the CRIU mailing list