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
e09b62f9
Unverified
Commit
e09b62f9
authored
Sep 10, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: add monitor_full_path member
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
d39e9d8b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
cgfsng.c
src/lxc/cgroups/cgfsng.c
+1
-0
cgroup.c
src/lxc/cgroups/cgroup.c
+1
-0
cgroup.h
src/lxc/cgroups/cgroup.h
+4
-0
No files found.
src/lxc/cgroups/cgfsng.c
View file @
e09b62f9
...
@@ -820,6 +820,7 @@ static struct hierarchy *add_hierarchy(struct hierarchy ***h, char **clist, char
...
@@ -820,6 +820,7 @@ static struct hierarchy *add_hierarchy(struct hierarchy ***h, char **clist, char
new
->
mountpoint
=
mountpoint
;
new
->
mountpoint
=
mountpoint
;
new
->
container_base_path
=
container_base_path
;
new
->
container_base_path
=
container_base_path
;
new
->
container_full_path
=
NULL
;
new
->
container_full_path
=
NULL
;
new
->
monitor_full_path
=
NULL
;
new
->
version
=
type
;
new
->
version
=
type
;
newentry
=
append_null_to_list
((
void
***
)
h
);
newentry
=
append_null_to_list
((
void
***
)
h
);
...
...
src/lxc/cgroups/cgroup.c
View file @
e09b62f9
...
@@ -88,6 +88,7 @@ void cgroup_exit(struct cgroup_ops *ops)
...
@@ -88,6 +88,7 @@ void cgroup_exit(struct cgroup_ops *ops)
free
((
*
it
)
->
mountpoint
);
free
((
*
it
)
->
mountpoint
);
free
((
*
it
)
->
container_base_path
);
free
((
*
it
)
->
container_base_path
);
free
((
*
it
)
->
container_full_path
);
free
((
*
it
)
->
container_full_path
);
free
((
*
it
)
->
monitor_full_path
);
free
(
*
it
);
free
(
*
it
);
}
}
free
(
ops
->
hierarchies
);
free
(
ops
->
hierarchies
);
...
...
src/lxc/cgroups/cgroup.h
View file @
e09b62f9
...
@@ -65,6 +65,9 @@ typedef enum {
...
@@ -65,6 +65,9 @@ typedef enum {
* @container_full_path
* @container_full_path
* - The full path to the containers cgroup.
* - The full path to the containers cgroup.
*
*
* @monitor_full_path
* - The full path to the monitor's cgroup.
*
* @version
* @version
* - legacy hierarchy
* - legacy hierarchy
* If the hierarchy is a legacy hierarchy this will be set to
* If the hierarchy is a legacy hierarchy this will be set to
...
@@ -78,6 +81,7 @@ struct hierarchy {
...
@@ -78,6 +81,7 @@ struct hierarchy {
char
*
mountpoint
;
char
*
mountpoint
;
char
*
container_base_path
;
char
*
container_base_path
;
char
*
container_full_path
;
char
*
container_full_path
;
char
*
monitor_full_path
;
int
version
;
int
version
;
};
};
...
...
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