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
992b78d7
Commit
992b78d7
authored
Feb 26, 2016
by
Christian Brauner
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #856 from hallyn/2016-02-26/cgfs.cgns.2
cgfs: ignore mount prefix in mountinfo if cgroup namespaces are suppo…
parents
5d55659d
fcca16bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cgfs.c
src/lxc/cgfs.c
+2
-1
No files found.
src/lxc/cgfs.c
View file @
992b78d7
...
@@ -418,6 +418,7 @@ static bool find_hierarchy_mountpts( struct cgroup_meta_data *meta_data, char **
...
@@ -418,6 +418,7 @@ static bool find_hierarchy_mountpts( struct cgroup_meta_data *meta_data, char **
size_t
mount_point_capacity
=
0
;
size_t
mount_point_capacity
=
0
;
size_t
token_capacity
=
0
;
size_t
token_capacity
=
0
;
int
r
;
int
r
;
bool
is_cgns
=
cgns_supported
();
proc_self_mountinfo
=
fopen_cloexec
(
"/proc/self/mountinfo"
,
"r"
);
proc_self_mountinfo
=
fopen_cloexec
(
"/proc/self/mountinfo"
,
"r"
);
/* if for some reason (because of setns() and pid namespace for example),
/* if for some reason (because of setns() and pid namespace for example),
...
@@ -512,7 +513,7 @@ static bool find_hierarchy_mountpts( struct cgroup_meta_data *meta_data, char **
...
@@ -512,7 +513,7 @@ static bool find_hierarchy_mountpts( struct cgroup_meta_data *meta_data, char **
meta_data
->
mount_points
[
mount_point_count
++
]
=
mount_point
;
meta_data
->
mount_points
[
mount_point_count
++
]
=
mount_point
;
mount_point
->
hierarchy
=
h
;
mount_point
->
hierarchy
=
h
;
if
(
is_lxcfs
)
if
(
is_lxcfs
||
is_cgns
)
mount_point
->
mount_prefix
=
strdup
(
"/"
);
mount_point
->
mount_prefix
=
strdup
(
"/"
);
else
else
mount_point
->
mount_prefix
=
strdup
(
tokens
[
3
]);
mount_point
->
mount_prefix
=
strdup
(
tokens
[
3
]);
...
...
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