[pve-devel] [PATCH v2 container] docs: update mountpoint descriptions

Fabian Grünbichler f.gruenbichler at proxmox.com
Tue Jun 7 11:32:03 CEST 2016


---
Changed:
- WARNING to NOTE
- include symlink info in normal description as well

 src/PVE/LXC/Config.pm | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/PVE/LXC/Config.pm b/src/PVE/LXC/Config.pm
index 6b4ec4c..c067e7a 100644
--- a/src/PVE/LXC/Config.pm
+++ b/src/PVE/LXC/Config.pm
@@ -208,7 +208,7 @@ my $rootfs_desc = {
     },
     ro => {
 	type => 'boolean',
-	description => 'Read-only mountpoint (not supported with bind mounts)',
+	description => 'Read-only mountpoint',
 	optional => 1,
     },
     quota => {
@@ -543,13 +543,18 @@ my $mp_desc = {
     backup => {
 	type => 'boolean',
 	description => 'Whether to include the mountpoint in backups.',
+	verbose_description => 'Whether to include the mountpoint in backups '.
+			       '(only used for volume mountpoints).',
 	optional => 1,
     },
     mp => {
 	type => 'string',
 	format => 'pve-lxc-mp-string',
 	format_description => 'Path',
-	description => 'Path to the mountpoint as seen from inside the container.',
+	description => 'Path to the mountpoint as seen from inside the container '.
+		       '(must not contain symlinks).',
+	verbose_description => "Path to the mountpoint as seen from inside the container.\n\n".
+			       "NOTE: Must not contain any symlinks for security reasons."
     },
 };
 PVE::JSONSchema::register_format('pve-ct-mountpoint', $mp_desc);
-- 
2.1.4





More information about the pve-devel mailing list