all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Wolfgang Bumiller <w.bumiller@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH container 2/2] pct cpuset: show effective values
Date: Tue, 20 Jul 2021 13:19:28 +0200	[thread overview]
Message-ID: <20210720111928.79632-2-w.bumiller@proxmox.com> (raw)
In-Reply-To: <20210720111928.79632-1-w.bumiller@proxmox.com>

rather than the "desired" ones, this is more useful
(we could also show differences if there are any?)

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
---
 src/PVE/CLI/pct.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/CLI/pct.pm b/src/PVE/CLI/pct.pm
index 23e8db0..254b3b3 100755
--- a/src/PVE/CLI/pct.pm
+++ b/src/PVE/CLI/pct.pm
@@ -712,9 +712,9 @@ __PACKAGE__->register_method ({
 
 	    my ($cpuset, $path);
 	    if (defined($path = $cgroup->get_path('cpuset', 1))) {
-		$cpuset = eval { PVE::CpuSet->new_from_path($path); };
+		$cpuset = eval { PVE::CpuSet->new_from_path($path, 1); };
 	    } elsif (defined($path = $cgroup->get_path(undef, 1))) {
-		$cpuset = eval { PVE::CpuSet->new_from_path($path); };
+		$cpuset = eval { PVE::CpuSet->new_from_path($path, 1); };
 	    } else {
 		# Container not running.
 		next;
-- 
2.30.2





  reply	other threads:[~2021-07-20 11:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-20 11:19 [pve-devel] [PATCH container 1/2] pct cpuset: use limiting cgroup Wolfgang Bumiller
2021-07-20 11:19 ` Wolfgang Bumiller [this message]
2021-07-20 11:24 ` [pve-devel] applied-series: " Thomas Lamprecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210720111928.79632-2-w.bumiller@proxmox.com \
    --to=w.bumiller@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal