From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id 485E81FF137 for ; Tue, 03 Feb 2026 14:56:34 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D404B1F719; Tue, 3 Feb 2026 14:57:01 +0100 (CET) Message-ID: <9911fe63-2b67-4148-9624-aa83a9b38ea2@proxmox.com> Date: Tue, 3 Feb 2026 14:56:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: [PATCH manager v2 01/17] api/pvestatd: broadcast and expose non-x86 host architecture To: Dominik Csapak , pve-devel@lists.proxmox.com References: <20260203102118.1430545-1-d.csapak@proxmox.com> <20260203102118.1430545-2-d.csapak@proxmox.com> Content-Language: en-US From: Thomas Lamprecht In-Reply-To: <20260203102118.1430545-2-d.csapak@proxmox.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1770126941861 X-SPAM-LEVEL: Spam detection results: 0 AWL -0.020 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: IOCAFBKJ2LHWXYDFWXOYTTZ2QJJXFB5S X-Message-ID-Hash: IOCAFBKJ2LHWXYDFWXOYTTZ2QJJXFB5S X-MailFrom: t.lamprecht@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Am 03.02.26 um 11:20 schrieb Dominik Csapak: > +use POSIX qw(); > > use Time::HiRes qw (gettimeofday); > use PVE::Tools qw(dir_glob_foreach file_read_firstline); > @@ -138,6 +139,8 @@ my sub broadcast_static_node_info { > my $cgroup_mode = eval { PVE::CGroup::cgroup_mode(); }; > syslog('err', "cgroup mode error: $@") if $@; > > + my (undef, undef, undef, undef, $architecture) = POSIX::uname(); You can just use the PVE::Tools::get_host_arch here, does the same under the hood but it's also cached. Could be fixed up if nothing else comes up.