2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

criu: add constants about user namespaces

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin 2014-10-31 12:14:21 +03:00 committed by Pavel Emelyanov
parent 7450349446
commit b0217d4e41
6 changed files with 6 additions and 0 deletions

View File

@ -323,6 +323,7 @@ static struct show_image_info show_infos[] = {
SHOW_PLAINS(EXT_FILE),
SHOW_PLAIN(IRMAP_CACHE),
SHOW_PLAIN(CPUINFO),
SHOW_PLAIN(USERNS),
{ FILE_LOCKS_MAGIC, PB_FILE_LOCK, false, NULL, "3:%u", },
{ TCP_STREAM_MAGIC, PB_TCP_STREAM, true, show_tcp_stream, "1:%u 2:%u 3:%u 4:%u 12:%u", },

View File

@ -88,6 +88,7 @@ struct cr_fd_desc_tmpl imgset_template[CR_FD_MAX] = {
FD_ENTRY(CGROUP, "cgroup"),
FD_ENTRY(TIMERFD, "timerfd"),
FD_ENTRY(CPUINFO, "cpuinfo"),
FD_ENTRY(USERNS, "userns-%d"),
[CR_FD_STATS] = {
.fmt = "stats-%s",

View File

@ -26,6 +26,7 @@ enum {
*/
CR_FD_UTSNS,
CR_FD_MNTS,
CR_FD_USERNS,
_CR_FD_IPCNS_FROM,
CR_FD_IPC_VAR,

View File

@ -75,6 +75,7 @@
#define CGROUP_MAGIC 0x59383330 /* Tikhvin */
#define TIMERFD_MAGIC 0x50493712 /* Korocha */
#define CPUINFO_MAGIC 0x61404013 /* Nyandoma */
#define USERNS_MAGIC 0x55474906 /* Kazan */
#define IFADDR_MAGIC RAW_IMAGE_MAGIC
#define ROUTE_MAGIC RAW_IMAGE_MAGIC

View File

@ -53,6 +53,7 @@ enum {
PB_CGROUP,
PB_TIMERFD,
PB_CPUINFO,
PB_USERNS,
/* PB_AUTOGEN_STOP */

View File

@ -60,6 +60,7 @@
#include "protobuf/cgroup.pb-c.h"
#include "protobuf/timerfd.pb-c.h"
#include "protobuf/cpuinfo.pb-c.h"
#include "protobuf/userns.pb-c.h"
struct cr_pb_message_desc cr_pb_descs[PB_MAX];