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
ea299bfc
Unverified
Commit
ea299bfc
authored
Feb 02, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freezer: remove lxc_cmd_freeze() and lxc_cmd_unfreeze() calls
We're now handling them better. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
9d47970b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
freezer.c
src/lxc/freezer.c
+0
-6
No files found.
src/lxc/freezer.c
View file @
ea299bfc
...
@@ -73,9 +73,6 @@ int lxc_freeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
...
@@ -73,9 +73,6 @@ int lxc_freeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
int
ret
;
int
ret
;
lxc_cmd_notify_state_listeners
(
name
,
lxcpath
,
FREEZING
);
lxc_cmd_notify_state_listeners
(
name
,
lxcpath
,
FREEZING
);
if
(
unified_cgroup_hierarchy
()
>
0
)
ret
=
lxc_cmd_freeze
(
name
,
lxcpath
,
-
1
);
else
ret
=
do_freeze_thaw
(
true
,
conf
,
name
,
lxcpath
);
ret
=
do_freeze_thaw
(
true
,
conf
,
name
,
lxcpath
);
lxc_cmd_notify_state_listeners
(
name
,
lxcpath
,
!
ret
?
FROZEN
:
RUNNING
);
lxc_cmd_notify_state_listeners
(
name
,
lxcpath
,
!
ret
?
FROZEN
:
RUNNING
);
return
ret
;
return
ret
;
...
@@ -86,9 +83,6 @@ int lxc_unfreeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
...
@@ -86,9 +83,6 @@ int lxc_unfreeze(struct lxc_conf *conf, const char *name, const char *lxcpath)
int
ret
;
int
ret
;
lxc_cmd_notify_state_listeners
(
name
,
lxcpath
,
THAWED
);
lxc_cmd_notify_state_listeners
(
name
,
lxcpath
,
THAWED
);
if
(
unified_cgroup_hierarchy
()
>
0
)
ret
=
lxc_cmd_unfreeze
(
name
,
lxcpath
,
-
1
);
else
ret
=
do_freeze_thaw
(
false
,
conf
,
name
,
lxcpath
);
ret
=
do_freeze_thaw
(
false
,
conf
,
name
,
lxcpath
);
lxc_cmd_notify_state_listeners
(
name
,
lxcpath
,
!
ret
?
RUNNING
:
FROZEN
);
lxc_cmd_notify_state_listeners
(
name
,
lxcpath
,
!
ret
?
RUNNING
:
FROZEN
);
return
ret
;
return
ret
;
...
...
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