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
3ec9a308
Unverified
Commit
3ec9a308
authored
Sep 10, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroup: rename container specific cgroup functions
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
a5a0ca05
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
cgfsng.c
src/lxc/cgroups/cgfsng.c
+2
-2
cgroup.h
src/lxc/cgroups/cgroup.h
+2
-2
criu.c
src/lxc/criu.c
+1
-1
start.c
src/lxc/start.c
+2
-2
No files found.
src/lxc/cgroups/cgfsng.c
View file @
3ec9a308
...
...
@@ -2593,8 +2593,8 @@ struct cgroup_ops *cgfsng_ops_init(void)
cgfsng_ops
->
data_init
=
cgfsng_data_init
;
cgfsng_ops
->
destroy
=
cgfsng_destroy
;
cgfsng_ops
->
create
=
cgfsng
_create
;
cgfsng_ops
->
enter
=
cgfsng
_enter
;
cgfsng_ops
->
payload_create
=
cgfsng_payload
_create
;
cgfsng_ops
->
payload_enter
=
cgfsng_payload
_enter
;
cgfsng_ops
->
escape
=
cgfsng_escape
;
cgfsng_ops
->
num_hierarchies
=
cgfsng_num_hierarchies
;
cgfsng_ops
->
get_hierarchies
=
cgfsng_get_hierarchies
;
...
...
src/lxc/cgroups/cgroup.h
View file @
3ec9a308
...
...
@@ -124,8 +124,8 @@ struct cgroup_ops {
bool
(
*
data_init
)(
struct
cgroup_ops
*
ops
);
void
(
*
destroy
)(
struct
cgroup_ops
*
ops
,
struct
lxc_handler
*
handler
);
bool
(
*
create
)(
struct
cgroup_ops
*
ops
,
struct
lxc_handler
*
handler
);
bool
(
*
enter
)(
struct
cgroup_ops
*
ops
,
pid_t
pid
);
bool
(
*
payload_
create
)(
struct
cgroup_ops
*
ops
,
struct
lxc_handler
*
handler
);
bool
(
*
payload_
enter
)(
struct
cgroup_ops
*
ops
,
pid_t
pid
);
const
char
*
(
*
get_cgroup
)(
struct
cgroup_ops
*
ops
,
const
char
*
controller
);
bool
(
*
escape
)(
const
struct
cgroup_ops
*
ops
);
int
(
*
num_hierarchies
)(
struct
cgroup_ops
*
ops
);
...
...
src/lxc/criu.c
View file @
3ec9a308
...
...
@@ -971,7 +971,7 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_
goto
out_fini_handler
;
handler
->
cgroup_ops
=
cgroup_ops
;
if
(
!
cgroup_ops
->
create
(
cgroup_ops
,
handler
))
{
if
(
!
cgroup_ops
->
payload_
create
(
cgroup_ops
,
handler
))
{
ERROR
(
"failed creating groups"
);
goto
out_fini_handler
;
}
...
...
src/lxc/start.c
View file @
3ec9a308
...
...
@@ -1583,7 +1583,7 @@ static int lxc_spawn(struct lxc_handler *handler)
}
}
if
(
!
cgroup_ops
->
create
(
cgroup_ops
,
handler
))
{
if
(
!
cgroup_ops
->
payload_
create
(
cgroup_ops
,
handler
))
{
ERROR
(
"Failed creating cgroups"
);
goto
out_delete_net
;
}
...
...
@@ -1677,7 +1677,7 @@ static int lxc_spawn(struct lxc_handler *handler)
goto
out_delete_net
;
}
if
(
!
cgroup_ops
->
enter
(
cgroup_ops
,
handler
->
pid
))
if
(
!
cgroup_ops
->
payload_
enter
(
cgroup_ops
,
handler
->
pid
))
goto
out_delete_net
;
if
(
!
cgroup_ops
->
chown
(
cgroup_ops
,
handler
->
conf
))
...
...
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