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
ea986a87
Commit
ea986a87
authored
Jul 01, 2016
by
Rodrigo Vaz
Committed by
Stéphane Graber
Aug 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add flag in mount_entry to skip NODEV in case of a persistent dev entry
Signed-off-by:
Rodrigo Vaz
<
rodrigo@heroku.com
>
parent
659ce93a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
conf.c
src/lxc/conf.c
+4
-3
No files found.
src/lxc/conf.c
View file @
ea986a87
...
...
@@ -1634,7 +1634,7 @@ static char *get_field(char *src, int nfields)
static
int
mount_entry
(
const
char
*
fsname
,
const
char
*
target
,
const
char
*
fstype
,
unsigned
long
mountflags
,
const
char
*
data
,
int
optional
,
const
char
*
rootfs
)
const
char
*
data
,
int
optional
,
int
dev
,
const
char
*
rootfs
)
{
#ifdef HAVE_STATVFS
struct
statvfs
sb
;
...
...
@@ -1663,7 +1663,7 @@ static int mount_entry(const char *fsname, const char *target,
unsigned
long
required_flags
=
rqd_flags
;
if
(
sb
.
f_flag
&
MS_NOSUID
)
required_flags
|=
MS_NOSUID
;
if
(
sb
.
f_flag
&
MS_NODEV
)
if
(
sb
.
f_flag
&
MS_NODEV
&&
!
dev
)
required_flags
|=
MS_NODEV
;
if
(
sb
.
f_flag
&
MS_RDONLY
)
required_flags
|=
MS_RDONLY
;
...
...
@@ -1785,6 +1785,7 @@ static inline int mount_entry_on_generic(struct mntent *mntent,
char
*
mntdata
;
int
ret
;
bool
optional
=
hasmntopt
(
mntent
,
"optional"
)
!=
NULL
;
bool
dev
=
hasmntopt
(
mntent
,
"dev"
)
!=
NULL
;
char
*
rootfs_path
=
NULL
;
if
(
rootfs
&&
rootfs
->
path
)
...
...
@@ -1803,7 +1804,7 @@ static inline int mount_entry_on_generic(struct mntent *mntent,
}
ret
=
mount_entry
(
mntent
->
mnt_fsname
,
path
,
mntent
->
mnt_type
,
mntflags
,
mntdata
,
optional
,
rootfs_path
);
mntdata
,
optional
,
dev
,
rootfs_path
);
free
(
mntdata
);
return
ret
;
...
...
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