Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
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
Chen Yisong
lxc
Commits
00ed6a7f
Unverified
Commit
00ed6a7f
authored
Feb 15, 2017
by
Tycho Andersen
Committed by
Stéphane Graber
Mar 20, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c/r: only supply --ext-mount-map for bind mounts
The rest of the mounts can be restored normally. Signed-off-by:
Tycho Andersen
<
tycho.andersen@canonical.com
>
parent
76877071
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
criu.c
src/lxc/criu.c
+11
-1
No files found.
src/lxc/criu.c
View file @
00ed6a7f
...
@@ -334,8 +334,18 @@ static void exec_criu(struct criu_opts *opts)
...
@@ -334,8 +334,18 @@ static void exec_criu(struct criu_opts *opts)
goto
err
;
goto
err
;
while
(
getmntent_r
(
mnts
,
&
mntent
,
buf
,
sizeof
(
buf
)))
{
while
(
getmntent_r
(
mnts
,
&
mntent
,
buf
,
sizeof
(
buf
)))
{
char
*
fmt
,
*
key
,
*
val
;
char
*
fmt
,
*
key
,
*
val
,
*
mntdata
;
char
arg
[
2
*
PATH_MAX
+
2
];
char
arg
[
2
*
PATH_MAX
+
2
];
unsigned
long
flags
;
if
(
parse_mntopts
(
mntent
.
mnt_opts
,
&
flags
,
&
mntdata
)
<
0
)
goto
err
;
free
(
mntdata
);
/* only add --ext-mount-map for actual bind mounts */
if
(
!
(
flags
&
MS_BIND
))
continue
;
if
(
strcmp
(
opts
->
action
,
"dump"
)
==
0
)
{
if
(
strcmp
(
opts
->
action
,
"dump"
)
==
0
)
{
fmt
=
"/%s:%s"
;
fmt
=
"/%s:%s"
;
...
...
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