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
8c23afc3
Unverified
Commit
8c23afc3
authored
Aug 28, 2020
by
wujing
Committed by
Christian Brauner
Oct 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove useless parameters
Signed-off-by:
wujing
<
Jing.Woo@outlook.com
>
parent
f3d2aa89
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
conf.c
src/lxc/conf.c
+3
-4
No files found.
src/lxc/conf.c
View file @
8c23afc3
...
@@ -2187,8 +2187,7 @@ static int mount_entry_on_relative_rootfs(struct mntent *mntent,
...
@@ -2187,8 +2187,7 @@ static int mount_entry_on_relative_rootfs(struct mntent *mntent,
return
mount_entry_on_generic
(
mntent
,
path
,
rootfs
,
lxc_name
,
lxc_path
);
return
mount_entry_on_generic
(
mntent
,
path
,
rootfs
,
lxc_name
,
lxc_path
);
}
}
static
int
mount_file_entries
(
const
struct
lxc_conf
*
conf
,
static
int
mount_file_entries
(
const
struct
lxc_rootfs
*
rootfs
,
FILE
*
file
,
const
struct
lxc_rootfs
*
rootfs
,
FILE
*
file
,
const
char
*
lxc_name
,
const
char
*
lxc_path
)
const
char
*
lxc_name
,
const
char
*
lxc_path
)
{
{
char
buf
[
PATH_MAX
];
char
buf
[
PATH_MAX
];
...
@@ -2237,7 +2236,7 @@ static int setup_mount(const struct lxc_conf *conf,
...
@@ -2237,7 +2236,7 @@ static int setup_mount(const struct lxc_conf *conf,
if
(
!
f
)
if
(
!
f
)
return
log_error_errno
(
-
1
,
errno
,
"Failed to open
\"
%s
\"
"
,
fstab
);
return
log_error_errno
(
-
1
,
errno
,
"Failed to open
\"
%s
\"
"
,
fstab
);
ret
=
mount_file_entries
(
conf
,
rootfs
,
f
,
lxc_name
,
lxc_path
);
ret
=
mount_file_entries
(
rootfs
,
f
,
lxc_name
,
lxc_path
);
if
(
ret
<
0
)
if
(
ret
<
0
)
ERROR
(
"Failed to set up mount entries"
);
ERROR
(
"Failed to set up mount entries"
);
...
@@ -2324,7 +2323,7 @@ static int setup_mount_entries(const struct lxc_conf *conf,
...
@@ -2324,7 +2323,7 @@ static int setup_mount_entries(const struct lxc_conf *conf,
if
(
!
f
)
if
(
!
f
)
return
-
1
;
return
-
1
;
return
mount_file_entries
(
conf
,
rootfs
,
f
,
lxc_name
,
lxc_path
);
return
mount_file_entries
(
rootfs
,
f
,
lxc_name
,
lxc_path
);
}
}
static
int
parse_cap
(
const
char
*
cap
)
static
int
parse_cap
(
const
char
*
cap
)
...
...
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