Commit 0de267cc authored by Qiang Huang's avatar Qiang Huang Committed by Pavel Emelyanov

crtools: add a callback to show filelocks-%d.img

Add a callback for filelock's image show.
Originally-signed-off-by: 's avatarZheng Gu <cengku.gu@huawei.com>
Signed-off-by: 's avatarQiang Huang <h.huangqiang@huawei.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent c9797cfa
...@@ -115,6 +115,11 @@ void show_tty_info(int fd, struct cr_options *o) ...@@ -115,6 +115,11 @@ void show_tty_info(int fd, struct cr_options *o)
pb_show_plain(fd, PB_TTY_INFO); 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) void show_fs(int fd_fs, struct cr_options *o)
{ {
pb_show_vertical(fd_fs, PB_FS); pb_show_vertical(fd_fs, PB_FS);
......
...@@ -164,6 +164,7 @@ void show_fown_cont(void *p); ...@@ -164,6 +164,7 @@ void show_fown_cont(void *p);
void show_eventfds(int fd, struct cr_options *o); void show_eventfds(int fd, struct cr_options *o);
void show_tty(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_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); void show_rlimit(int fd, struct cr_options *o);
int check_img_inventory(void); int check_img_inventory(void);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment