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
aca33ac4
Commit
aca33ac4
authored
Apr 23, 2014
by
Pavel Emelyanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mnt: Add comment why we need criu's mntns mounts for dump
Signed-off-by:
Pavel Emelyanov
<
xemul@parallels.com
>
parent
f22591c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
mount.c
mount.c
+10
-3
No files found.
mount.c
View file @
aca33ac4
...
@@ -1901,17 +1901,24 @@ static int walk_mnt_ns(int (*cb)(struct ns_id *, struct mount_info *, void *), v
...
@@ -1901,17 +1901,24 @@ static int walk_mnt_ns(int (*cb)(struct ns_id *, struct mount_info *, void *), v
continue
;
continue
;
if
(
ns
->
pid
==
getpid
())
{
if
(
ns
->
pid
==
getpid
())
{
/*
* Collect criu's mounts only if the target
* task does NOT live in mount namespaces to
* make smart paths resolution work.
*
* Otherwise, the necessary list of mounts
* will be collected below.
*/
if
(
!
(
root_ns_mask
&
CLONE_NEWNS
))
{
if
(
!
(
root_ns_mask
&
CLONE_NEWNS
))
{
mntinfo
=
collect_mntinfo
(
ns
);
mntinfo
=
collect_mntinfo
(
ns
);
if
(
mntinfo
==
NULL
)
if
(
mntinfo
==
NULL
)
goto
err
;
goto
err
;
}
}
/* Skip current namespaces, which are in the list too */
continue
;
continue
;
}
}
pr_info
(
"Dump MNT namespace (mountpoints) %d via %d
\n
"
,
pr_info
(
"Dump MNT namespace (mountpoints) %d via %d
\n
"
,
ns
->
id
,
ns
->
pid
);
ns
->
id
,
ns
->
pid
);
pms
=
collect_mntinfo
(
ns
);
pms
=
collect_mntinfo
(
ns
);
if
(
pms
==
NULL
)
if
(
pms
==
NULL
)
goto
err
;
goto
err
;
...
...
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