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
7b371c1e
Unverified
Commit
7b371c1e
authored
Jan 27, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: coding style fixes
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
e25af1bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
conf.c
src/lxc/conf.c
+9
-9
No files found.
src/lxc/conf.c
View file @
7b371c1e
...
...
@@ -597,7 +597,7 @@ static int add_shmount_to_list(struct lxc_conf *conf)
static
int
lxc_mount_auto_mounts
(
struct
lxc_conf
*
conf
,
int
flags
,
struct
lxc_handler
*
handler
)
{
int
i
,
r
;
int
i
,
r
et
;
static
struct
{
int
match_mask
;
int
match_flag
;
...
...
@@ -672,18 +672,18 @@ static int lxc_mount_auto_mounts(struct lxc_conf *conf, int flags, struct lxc_ha
mflags
=
add_required_remount_flags
(
source
,
destination
,
default_mounts
[
i
].
flags
);
r
=
safe_mount
(
source
,
destination
,
default_mounts
[
i
].
fstype
,
mflags
,
default_mounts
[
i
].
options
,
rootfs
->
path
?
rootfs
->
mount
:
NULL
);
r
et
=
safe_mount
(
source
,
destination
,
default_mounts
[
i
].
fstype
,
mflags
,
default_mounts
[
i
].
options
,
rootfs
->
path
?
rootfs
->
mount
:
NULL
);
saved_errno
=
errno
;
if
(
r
<
0
&&
errno
==
ENOENT
)
{
if
(
r
et
<
0
&&
errno
==
ENOENT
)
{
INFO
(
"Mount source or target for
\"
%s
\"
on
\"
%s
\"
does not exist. Skipping"
,
source
,
destination
);
r
=
0
;
}
else
if
(
r
<
0
)
{
r
et
=
0
;
}
else
if
(
r
et
<
0
)
{
SYSERROR
(
"Failed to mount
\"
%s
\"
on
\"
%s
\"
with flags %lu"
,
source
,
destination
,
mflags
);
}
if
(
r
<
0
)
{
if
(
r
et
<
0
)
{
errno
=
saved_errno
;
return
-
1
;
}
...
...
@@ -728,7 +728,7 @@ static int lxc_mount_auto_mounts(struct lxc_conf *conf, int flags, struct lxc_ha
}
if
(
flags
&
LXC_AUTO_SHMOUNTS_MASK
)
{
int
ret
=
add_shmount_to_list
(
conf
);
ret
=
add_shmount_to_list
(
conf
);
if
(
ret
<
0
)
return
log_error
(
-
1
,
"Failed to add shmount entry to container config"
);
}
...
...
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