From 0de267ccdc9779f1c3a16e7b40b6657ca775d3cc Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Thu, 17 Jan 2013 16:09:29 +0800 Subject: [PATCH] crtools: add a callback to show filelocks-%d.img Add a callback for filelock's image show. Originally-signed-off-by: Zheng Gu Signed-off-by: Qiang Huang Signed-off-by: Pavel Emelyanov --- cr-show.c | 5 +++++ include/crtools.h | 1 + 2 files changed, 6 insertions(+) diff --git a/cr-show.c b/cr-show.c index 57bdbefaf..aa754128d 100644 --- a/cr-show.c +++ b/cr-show.c @@ -115,6 +115,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 bdeaf6005..194d93370 100644 --- a/include/crtools.h +++ b/include/crtools.h @@ -164,6 +164,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); void show_rlimit(int fd, struct cr_options *o); int check_img_inventory(void);