From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 3FB6A1FF0B7 for ; Mon, 30 Nov 2026 11:04:03 +0100 (CET) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 0F7592163C; Mon, 30 Nov 2026 11:04:03 +0100 (CET) From: Dietmar Maurer To: pbs-devel@lists.proxmox.com Subject: [PATCH proxmox-backup] pxar-fuse: only enable libfuse debug output in verbose mode Date: Mon, 30 Nov 2026 11:03:58 +0100 Message-ID: <20261130100358.79630-1-dietmar@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL -0.476 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 1.274 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Message-ID-Hash: WK5EMV6K4Y3PXWOWXYTTPE377Q7OPGIS X-Message-ID-Hash: WK5EMV6K4Y3PXWOWXYTTPE377Q7OPGIS X-MailFrom: dietmar@zilli.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 Backup Server development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Since commit 41d08aa6d, libfuse's debug output was only enabled in verbose mode. The move to the proxmox-fuse session builder in commit c443f58b0 enables it unconditionally, while the verbose flag only controls the session's own error messages since. proxmox-backup-client mount does not show it, as it redirects stderr once daemonized, but pxar mount stays in the foreground and so prints libfuse's trace of every request even without --verbose, as does any other user of the crate that keeps stderr, for example a long-running desktop client. Fixes: c443f58b0 ("switch to external pxar and fuse crates") Signed-off-by: Dietmar Maurer --- pbs-pxar-fuse/src/lib.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pbs-pxar-fuse/src/lib.rs b/pbs-pxar-fuse/src/lib.rs index ef6e8b89c..83528f920 100644 --- a/pbs-pxar-fuse/src/lib.rs +++ b/pbs-pxar-fuse/src/lib.rs @@ -88,8 +88,11 @@ impl Session { verbose: bool, path: &Path, ) -> Result { - let fuse = Fuse::builder("pxar-mount")? - .debug() + let mut builder = Fuse::builder("pxar-mount")?; + if verbose { + builder = builder.debug(); + } + let fuse = builder .options_os(options)? .enable_readdirplus() .enable_read() -- 2.47.3