Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
criu
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhul
criu
Commits
01f6f890
Commit
01f6f890
authored
Sep 29, 2014
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ns: Introduce collect_namespaces routine
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
b4768792
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
cr-dump.c
cr-dump.c
+1
-1
namespaces.h
include/namespaces.h
+1
-0
namespaces.c
namespaces.c
+11
-0
No files found.
cr-dump.c
View file @
01f6f890
...
@@ -1799,7 +1799,7 @@ int cr_dump_tasks(pid_t pid)
...
@@ -1799,7 +1799,7 @@ int cr_dump_tasks(pid_t pid)
if
(
collect_file_locks
())
if
(
collect_file_locks
())
goto
err
;
goto
err
;
if
(
collect_
mnt_
namespaces
()
<
0
)
if
(
collect_namespaces
()
<
0
)
goto
err
;
goto
err
;
if
(
collect_sockets
(
pid
))
if
(
collect_sockets
(
pid
))
...
...
include/namespaces.h
View file @
01f6f890
...
@@ -41,6 +41,7 @@ extern unsigned long root_ns_mask;
...
@@ -41,6 +41,7 @@ extern unsigned long root_ns_mask;
extern
const
struct
fdtype_ops
nsfile_dump_ops
;
extern
const
struct
fdtype_ops
nsfile_dump_ops
;
extern
struct
collect_image_info
nsfile_cinfo
;
extern
struct
collect_image_info
nsfile_cinfo
;
extern
int
collect_namespaces
(
void
);
extern
int
collect_mnt_namespaces
(
void
);
extern
int
collect_mnt_namespaces
(
void
);
extern
int
dump_mnt_namespaces
(
void
);
extern
int
dump_mnt_namespaces
(
void
);
extern
int
dump_namespaces
(
struct
pstree_item
*
item
,
unsigned
int
ns_flags
);
extern
int
dump_namespaces
(
struct
pstree_item
*
item
,
unsigned
int
ns_flags
);
...
...
namespaces.c
View file @
01f6f890
...
@@ -528,6 +528,17 @@ int dump_namespaces(struct pstree_item *item, unsigned int ns_flags)
...
@@ -528,6 +528,17 @@ int dump_namespaces(struct pstree_item *item, unsigned int ns_flags)
return
0
;
return
0
;
}
}
int
collect_namespaces
(
void
)
{
int
ret
;
ret
=
collect_mnt_namespaces
();
if
(
ret
<
0
)
return
ret
;
return
0
;
}
int
prepare_namespace
(
struct
pstree_item
*
item
,
unsigned
long
clone_flags
)
int
prepare_namespace
(
struct
pstree_item
*
item
,
unsigned
long
clone_flags
)
{
{
pid_t
pid
=
item
->
pid
.
virt
;
pid_t
pid
=
item
->
pid
.
virt
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment