From: Dietmar Maurer Date: Sat, 5 Nov 2016 16:21:04 +0000 (+0100) Subject: gen-pct-mountpoint-opts.pl: improve layout X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=e7ff87618518ae851c9dff342c5f5059309c3b5a gen-pct-mountpoint-opts.pl: improve layout --- diff --git a/gen-pct-mountpoint-opts.pl b/gen-pct-mountpoint-opts.pl index 6c2269c..151c18a 100755 --- a/gen-pct-mountpoint-opts.pl +++ b/gen-pct-mountpoint-opts.pl @@ -15,10 +15,14 @@ my $mp_prop = $prop->{mp0}; my $typetext = PVE::JSONSchema::schema_get_type_text($rootfs_prop); -print "`rootfs`: `$typetext`\n\n"; +print "`rootfs`: `$typetext` ::\n\n"; + +print $rootfs_prop->{description} . + " See below for a detailed description of all options.\n\n"; $typetext = PVE::JSONSchema::schema_get_type_text($mp_prop); -print "`mp[n]`: `$typetext`\n\n"; +print "`mp[n]`: `$typetext` ::\n\n"; +print $mp_prop->{description} . "\n\n"; -print PVE::RESTHandler::dump_properties($mp_prop->{format}); +print PVE::RESTHandler::dump_properties($mp_prop->{format}, 'asciidoc', 'config-sub'); diff --git a/pct-mountpoint-opts.adoc b/pct-mountpoint-opts.adoc index feb85e1..e2a9f15 100644 --- a/pct-mountpoint-opts.adoc +++ b/pct-mountpoint-opts.adoc @@ -1,40 +1,44 @@ -`rootfs`: `[volume=] [,acl=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` +`rootfs`: `[volume=] [,acl=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` :: -`mp[n]`: `[volume=] ,mp= [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` +Use volume as container root. See below for a detailed description of all options. -`acl`: `` :: +`mp[n]`: `[volume=] ,mp= [,acl=<1|0>] [,backup=<1|0>] [,quota=<1|0>] [,ro=<1|0>] [,shared=<1|0>] [,size=]` :: + +Use volume as container mount point. + +`acl`=`` ;; Explicitly enable or disable ACL support. -`backup`: `` :: +`backup`=`` ;; Whether to include the mount point in backups (only used for volume mount points). -`mp`: `` :: +`mp`=`` ;; Path to the mount point as seen from inside the container. + NOTE: Must not contain any symlinks for security reasons. -`quota`: `` :: +`quota`=`` ;; Enable user quotas inside the container (not supported with zfs subvolumes) -`ro`: `` :: +`ro`=`` ;; Read-only mount point -`shared`: `` ('default =' `0`):: +`shared`=`` ('default =' `0`);; Mark this non-volume mount point as available on all nodes. + WARNING: This option does not share the mount point automatically, it assumes it is shared already! -`size`: `` :: +`size`=`` ;; Volume size (read only value). -`volume`: `` :: +`volume`=`` ;; Volume, device or directory to mount into the container.