[CRIU] [PATCH 01/11] images: split namespace contants per subsystems

Andrey Vagin avagin at openvz.org
Mon Sep 30 06:16:43 PDT 2013


Currently all values of constants should be continuous,
because cr_fdset_open is used for opening images for all namespaces.

The next patches will rework this code and image files will be opened
per namespace, then all these ugly settings of one constant to another
will be removed.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 include/image-desc.h | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/include/image-desc.h b/include/image-desc.h
index cb46b89..50f8266 100644
--- a/include/image-desc.h
+++ b/include/image-desc.h
@@ -33,15 +33,21 @@ enum {
 
 	_CR_FD_NS_FROM,
 	CR_FD_UTSNS,
+	CR_FD_MNTS,
+
+	_CR_FD_IPCNS_FROM	= CR_FD_MNTS,
 	CR_FD_IPC_VAR,
 	CR_FD_IPCNS_SHM,
 	CR_FD_IPCNS_MSG,
 	CR_FD_IPCNS_SEM,
-	CR_FD_MNTS,
-	CR_FD_NETDEV,
+	_CR_FD_IPCNS_TO,
+
+	_CR_FD_NETNS_FROM	= CR_FD_IPCNS_SEM,
+	CR_FD_NETDEV		= _CR_FD_IPCNS_TO,
 	CR_FD_IFADDR,
 	CR_FD_ROUTE,
-	_CR_FD_NS_TO,
+	_CR_FD_NETNS_TO,
+	_CR_FD_NS_TO		= _CR_FD_NETNS_TO,
 
 	CR_FD_PSTREE,
 	CR_FD_SHMEM_PAGEMAP,
-- 
1.8.3.1



More information about the CRIU mailing list