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
dd66700c
Unverified
Commit
dd66700c
authored
May 19, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cgroups: remove freezer_state()
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
2202afc9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
27 deletions
+1
-27
freezer.c
src/lxc/freezer.c
+0
-21
state.c
src/lxc/state.c
+1
-6
No files found.
src/lxc/freezer.c
View file @
dd66700c
...
...
@@ -42,27 +42,6 @@
lxc_log_define
(
lxc_freezer
,
lxc
);
lxc_state_t
freezer_state
(
const
char
*
name
,
const
char
*
lxcpath
)
{
int
ret
;
char
v
[
100
];
struct
cgroup_ops
*
cgroup_ops
;
cgroup_ops
=
cgroup_init
(
NULL
);
if
(
!
cgroup_ops
)
return
-
1
;
ret
=
cgroup_ops
->
get
(
cgroup_ops
,
"freezer.state"
,
v
,
sizeof
(
v
),
name
,
lxcpath
);
cgroup_exit
(
cgroup_ops
);
if
(
ret
<
0
)
return
-
1
;
v
[
99
]
=
'\0'
;
v
[
lxc_char_right_gc
(
v
,
strlen
(
v
))]
=
'\0'
;
return
lxc_str2state
(
v
);
}
static
int
do_freeze_thaw
(
bool
freeze
,
const
char
*
name
,
const
char
*
lxcpath
)
{
int
ret
;
...
...
src/lxc/state.c
View file @
dd66700c
...
...
@@ -72,12 +72,7 @@ lxc_state_t lxc_str2state(const char *state)
lxc_state_t
lxc_getstate
(
const
char
*
name
,
const
char
*
lxcpath
)
{
extern
lxc_state_t
freezer_state
(
const
char
*
name
,
const
char
*
lxcpath
);
lxc_state_t
state
=
freezer_state
(
name
,
lxcpath
);
if
(
state
!=
FROZEN
&&
state
!=
FREEZING
)
state
=
lxc_cmd_get_state
(
name
,
lxcpath
);
return
state
;
return
lxc_cmd_get_state
(
name
,
lxcpath
);
}
static
int
fillwaitedstates
(
const
char
*
strstates
,
lxc_state_t
*
states
)
...
...
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