We used a $limiting parameter instead.

Signed-off-by: Wolfgang Bumiller <w.bumil...@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


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to