]> git.proxmox.com Git - pve-docs.git/blobdiff - gen-pct-mountpoint-opts.pl
pct: add auto-generated mount point docs
[pve-docs.git] / gen-pct-mountpoint-opts.pl
diff --git a/gen-pct-mountpoint-opts.pl b/gen-pct-mountpoint-opts.pl
new file mode 100755 (executable)
index 0000000..4fd6964
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/perl
+
+use lib '.';
+use strict;
+use warnings;
+use PVE::RESTHandler;
+use PVE::LXC::Config;
+
+my $prop = PVE::LXC::Config->json_config_properties();
+
+my $rootfs_prop = $prop->{rootfs};
+
+my $mp_prop = $prop->{mp0};
+
+my $typetext = PVE::PodParser::schema_get_type_text($rootfs_prop);
+
+print "`rootfs`: `$typetext`\n\n";
+
+$typetext = PVE::PodParser::schema_get_type_text($mp_prop);
+
+print "`mp[n]`: `$typetext`\n\n";
+
+print PVE::RESTHandler::dump_properties($mp_prop->{format});