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
e83494bb
Unverified
Commit
e83494bb
authored
Feb 25, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commands: port lxc_cmd_get_cgroup_fd() to new helpers
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
558cb2b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
commands.c
src/lxc/commands.c
+4
-10
No files found.
src/lxc/commands.c
View file @
e83494bb
...
@@ -1617,17 +1617,11 @@ int lxc_cmd_get_cgroup_fd(const char *name, const char *lxcpath,
...
@@ -1617,17 +1617,11 @@ int lxc_cmd_get_cgroup_fd(const char *name, const char *lxcpath,
size_t
size_ret_fd
,
struct
cgroup_fd
*
ret_fd
)
size_t
size_ret_fd
,
struct
cgroup_fd
*
ret_fd
)
{
{
bool
stopped
=
false
;
bool
stopped
=
false
;
struct
lxc_cmd_rr
cmd
=
{
.
req
=
{
.
cmd
=
LXC_CMD_GET_CGROUP_FD
,
.
datalen
=
sizeof
(
struct
cgroup_fd
),
.
data
=
ret_fd
,
},
.
rsp
=
{
.
ret
=
-
ENOSYS
,
},
};
int
ret
;
int
ret
;
struct
lxc_cmd_rr
cmd
;
lxc_cmd_init
(
&
cmd
,
LXC_CMD_GET_CGROUP_FD
);
lxc_cmd_data
(
&
cmd
,
sizeof
(
struct
cgroup_fd
),
ret_fd
);
ret
=
lxc_cmd
(
name
,
&
cmd
,
&
stopped
,
lxcpath
,
NULL
);
ret
=
lxc_cmd
(
name
,
&
cmd
,
&
stopped
,
lxcpath
,
NULL
);
if
(
ret
<
0
)
if
(
ret
<
0
)
...
...
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