[pve-devel] [PATCH container 2/5] command: cleanup unused function

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Apr 6 09:50:43 CEST 2020


We used a $limiting parameter instead.

Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 src/PVE/LXC/Command.pm | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/src/PVE/LXC/Command.pm b/src/PVE/LXC/Command.pm
index b361c7d..a09b2be 100644
--- a/src/PVE/LXC/Command.pm
+++ b/src/PVE/LXC/Command.pm
@@ -173,24 +173,4 @@ sub get_cgroup_path($;$$) {
     return unpack('Z*', $data);
 }
 
-# Retrieve the cgroup path for a running container.
-# If $limiting is set, get the payload path without the namespace subdirectory,
-# otherwise return the full namespaced path.
-#
-# Returns undef if the container is not running, dies on errors.
-sub get_limiting_cgroup_path($;$) {
-    my ($vmid, $subsystem) = @_;
-
-    # subsystem name must be a zero-terminated C string.
-    my ($res, $data) = simple_command(
-	$vmid,
-	LXC_CMD_GET_LIMITING_CGROUP,
-	pack('Z*', $subsystem),
-    );
-    return undef if !defined $res;
-
-    # data is a zero-terminated string:
-    return unpack('Z*', $data);
-}
-
 1;
-- 
2.20.1





More information about the pve-devel mailing list