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
42a993b4
Unverified
Commit
42a993b4
authored
Feb 17, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgfsng: must_append_controller()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
8073018d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
cgfsng.c
src/lxc/cgroups/cgfsng.c
+9
-10
No files found.
src/lxc/cgroups/cgfsng.c
View file @
42a993b4
...
@@ -263,20 +263,19 @@ static char *cg_legacy_must_prefix_named(char *entry)
...
@@ -263,20 +263,19 @@ static char *cg_legacy_must_prefix_named(char *entry)
return
prefixed
;
return
prefixed
;
}
}
/*
/* Append an entry to the clist. Do not fail. @clist must be NULL the first time
* append an entry to the clist. Do not fail.
* we are called.
* *clist must be NULL the first time we are called.
*
*
* We also handle named subsystems here. Any controller which is not a
* We also handle named subsystems here. Any controller which is not a kernel
* kernel subsystem, we prefix 'name='. Any which is both a kernel and
* subsystem, we prefix "name=". Any which is both a kernel and named subsystem,
* named subsystem, we refuse to use because we're not sure which we
* we refuse to use because we're not sure which we have here.
* have here. (TODO - we could work around this in some cases by just
* (TODO: We could work around this in some cases by just remounting to be
* remounting to be unambiguous, or by comparing mountpoint contents
* unambiguous, or by comparing mountpoint contents with current cgroup.)
* with current cgroup)
*
*
* The last entry will always be NULL.
* The last entry will always be NULL.
*/
*/
static
void
must_append_controller
(
char
**
klist
,
char
**
nlist
,
char
***
clist
,
char
*
entry
)
static
void
must_append_controller
(
char
**
klist
,
char
**
nlist
,
char
***
clist
,
char
*
entry
)
{
{
int
newentry
;
int
newentry
;
char
*
copy
;
char
*
copy
;
...
...
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