From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id EB00A9EF89 for ; Wed, 7 Jun 2023 15:32:24 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id D3DDA1A3E9 for ; Wed, 7 Jun 2023 15:32:24 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 7 Jun 2023 15:32:24 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 26C5A41EF3 for ; Wed, 7 Jun 2023 15:32:24 +0200 (CEST) From: Leo Nunner To: pve-devel@lists.proxmox.com Date: Wed, 7 Jun 2023 15:32:16 +0200 Message-Id: <20230607133216.216761-1-l.nunner@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.503 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_ASCII_DIVIDERS 0.8 Email that uses ascii formatting dividers and possible spam tricks 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 T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH docs] storage: more documentation for content-dirs X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2023 13:32:25 -0000 give an overview over vtypes and also document the option for cephfs. Signed-off-by: Leo Nunner --- pve-storage-cephfs.adoc | 4 ++++ pve-storage-dir.adoc | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/pve-storage-cephfs.adoc b/pve-storage-cephfs.adoc index c10976b..6873660 100644 --- a/pve-storage-cephfs.adoc +++ b/pve-storage-cephfs.adoc @@ -57,6 +57,10 @@ fuse:: Access CephFS through FUSE, instead of the kernel client. Optional, defaults to `0`. +content-dirs:: + +Overrides for the default directory layout. Optional. + .Configuration example for an external Ceph cluster (`/etc/pve/storage.cfg`) ---- cephfs: cephfs-external diff --git a/pve-storage-dir.adoc b/pve-storage-dir.adoc index 3367394..61dddeb 100644 --- a/pve-storage-dir.adoc +++ b/pve-storage-dir.adoc @@ -59,6 +59,26 @@ in the following format: Where `vtype` is one of the allowed content types for the storage, and `path` is a path relative to the mountpoint of the storage. +.Overrides +[width="100%",cols="d,m,m",options="header"] +|=========================================================== +|Content type |vtype | Example +|VM images |`images` | images=sub/dir +|ISO images |`iso` | iso=sub/dir +|Container templates |`vztmpl` | vztmpl=sub/dir +|Backup files |`backup` | backup=sub/dir +|Snippets |`sinppet` | snippet=sub/dir +|=========================================================== + +So an override for VM images would look like `images=dir/path`, an +override for ISO images like `iso=dir/path` etc. They can also be +combined in a list: + +---- +content-dirs images=dir/path,iso=dir/path +---- + + .Configuration Example (`/etc/pve/storage.cfg`) ---- dir: backup -- 2.30.2