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
4fbf4a31
Commit
4fbf4a31
authored
Feb 22, 2017
by
Christian Brauner
Committed by
GitHub
Feb 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1441 from tych0/only-do-bind-mounts
c/r: only supply --ext-mount-map for bind mounts
parents
f7938476
19d2422b
Show 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 @
4fbf4a31
...
@@ -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