freezer: remove lxc_cmd_freeze() and lxc_cmd_unfreeze() calls

We're now handling them better. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 9d47970b
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment