From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) by lore.proxmox.com (Postfix) with ESMTPS id 660F21FF141 for ; Tue, 19 May 2026 14:32:21 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id C1D805D9D; Tue, 19 May 2026 14:32:19 +0200 (CEST) From: Filip Schauer To: pve-devel@lists.proxmox.com Subject: [PATCH container] fix #7603: config: improve verbose description of mountpoint idmap Date: Tue, 19 May 2026 14:32:10 +0200 Message-ID: <20260519123212.27281-1-f.schauer@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1779193923278 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.012 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: EESLTN33GW4EZPONAAFKV55CKCTMKTE5 X-Message-ID-Hash: EESLTN33GW4EZPONAAFKV55CKCTMKTE5 X-MailFrom: f.schauer@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: Add more examples for range mapping and passthrough. Use \n\n between paragraphs to improve readability in generated documentation. Signed-off-by: Filip Schauer --- src/PVE/LXC/Config.pm | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm index c3fbd79..80942d3 100644 --- a/src/PVE/LXC/Config.pm +++ b/src/PVE/LXC/Config.pm @@ -377,14 +377,18 @@ my $rootfs_desc = { verbose_description => "Customize UID/GID mappings that override the container's `lxc.idmap` for this mount " . "point. Accepts a semicolon-separated list of `type:container:disk:range-size` " - . "entries.\n" - . "`type` is `u` for UID or `g` for GID.\n" - . "`container` is the first ID as seen inside the container.\n" - . "`disk` is the first corresponding ID on the underlying filesystem.\n" - . "`range-size` is the number of consecutive IDs to map.\n" - . "Unmapped IDs fall back to the container's `lxc.idmap`.\n" - . "Example: `u:123:456:1` maps UID 123 in the container to UID 456 on the disk. " - . "Files owned by UID 456 on the disk will appear as UID 123 inside the container.", + . "entries.\n\n" + . "`type` is `u` for UID or `g` for GID.\n\n" + . "`container` is the first ID as seen inside the container.\n\n" + . "`disk` is the first corresponding ID on the underlying filesystem.\n\n" + . "`range-size` is the number of consecutive IDs to map.\n\n" + . "Unmapped IDs fall back to the container's `lxc.idmap`.\n\n" + . "Example 1: `u:123:456:1` maps UID 123 in the container to UID 456 on the disk. " + . "Files owned by UID 456 on the disk will appear as UID 123 inside the container.\n\n" + . "Example 2: `g:100:50:5` maps 5 consecutive GIDs, such that GIDs 100-104 in the " + . "container are mapped to GIDs 50-54 on the disk.\n\n" + . "Example 3: `passthrough` identity-maps all UIDs and GIDs, meaning IDs inside the " + . "container will match the IDs on the disk.", format_description => 'type:container:disk:range-size[;type:container:disk:range-size;...]', pattern => -- 2.47.3