From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 2FC021FF0E6 for ; Fri, 07 Aug 2026 11:37:13 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id E656B214BE; Fri, 07 Aug 2026 11:37:12 +0200 (CEST) From: David Riley To: pve-devel@lists.proxmox.com Subject: [PATCH storage 0/2] fix #6050: normalize paths in mount status checks Date: Fri, 7 Aug 2026 11:36:55 +0200 Message-ID: <20260807093657.23649-1-d.riley@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1786095413418 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.880 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) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust 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: XHKRTMUZF73N35DU3JV7EPY6VITIFGQO X-Message-ID-Hash: XHKRTMUZF73N35DU3JV7EPY6VITIFGQO X-MailFrom: d.riley@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: Manual edits in the `storage.cfg` can introduce trailing or extra slashes into storage paths. While these storages mount and function properly, the kernel normalizes entries in `/proc/mounts` by omitting trailing slashes. As a result, status verification checks in the NFS and CIFS/SMB Storage Plugin fail due to string mismatches, causing working storages to continuously report as 'inactive' in both the web UI and via `pvesm status`. This series sanitizes the export, share, and subdirectory paths prior to checking `/proc/mounts`, ensuring active mounts are correctly recognized. pve-storage: David Riley (2): fix #6050: nfs: strip trailing slashes from mount status check fix #6050: cifs: normalize share and subdir paths for mount and status src/PVE/Storage/CIFSPlugin.pm | 32 ++++++++++++++++++++++++++++---- src/PVE/Storage/NFSPlugin.pm | 6 +++++- 2 files changed, 33 insertions(+), 5 deletions(-) Summary over all repositories: 2 files changed, 33 insertions(+), 5 deletions(-) -- Generated by murpp 0.11.0