[CRIU] [PATCH 04/11] crtools: add image contents for filelocks
Qiang Huang
h.huangqiang at huawei.com
Thu Jan 17 03:09:30 EST 2013
Some contents needed by filelock's image.
Originally-signed-off-by: Zheng Gu <cengku.gu at huawei.com>
Signed-off-by: Qiang Huang <h.huangqiang at huawei.com>
---
image.c | 1 +
include/crtools.h | 1 +
include/image.h | 1 +
3 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/image.c b/image.c
index f1f93a0..c0dc601 100644
--- a/image.c
+++ b/image.c
@@ -130,6 +130,7 @@ struct cr_fd_desc_tmpl fdset_template[CR_FD_MAX] = {
FD_ENTRY(TMPFS, "tmpfs-%d.tar.gz", show_raw_image),
FD_ENTRY(TTY, "tty", show_tty),
FD_ENTRY(TTY_INFO, "tty-info", show_tty_info),
+ FD_ENTRY(FILE_LOCKS, "filelocks-%d", show_file_locks),
};
static struct cr_fdset *alloc_cr_fdset(int nr)
diff --git a/include/crtools.h b/include/crtools.h
index 7a28577..1db56c5 100644
--- a/include/crtools.h
+++ b/include/crtools.h
@@ -24,6 +24,7 @@ enum {
_CR_FD_TASK_FROM,
CR_FD_FDINFO,
+ CR_FD_FILE_LOCKS,
CR_FD_PAGES,
CR_FD_CORE,
CR_FD_MM,
diff --git a/include/image.h b/include/image.h
index 6d6a4a6..df34196 100644
--- a/include/image.h
+++ b/include/image.h
@@ -61,6 +61,7 @@
#define NETDEV_MAGIC 0x57373951 /* Yaroslavl */
#define TTY_MAGIC 0x59433025 /* Pushkin */
#define TTY_INFO_MAGIC 0x59453036 /* Kolpino */
+#define FILE_LOCKS_MAGIC 0x54323616 /* Kaluga */
#define IFADDR_MAGIC RAW_IMAGE_MAGIC
#define ROUTE_MAGIC RAW_IMAGE_MAGIC
--
1.7.1
More information about the CRIU
mailing list