pct: add auto-generated mount point docs
[pve-docs.git] / gen-pct-mountpoint-opts.pl
1 #!/usr/bin/perl
2
3 use lib '.';
4 use strict;
5 use warnings;
6 use PVE::RESTHandler;
7 use PVE::LXC::Config;
8
9 my $prop = PVE::LXC::Config->json_config_properties();
10
11 my $rootfs_prop = $prop->{rootfs};
12
13 my $mp_prop = $prop->{mp0};
14
15 my $typetext = PVE::PodParser::schema_get_type_text($rootfs_prop);
16
17 print "`rootfs`: `$typetext`\n\n";
18
19 $typetext = PVE::PodParser::schema_get_type_text($mp_prop);
20
21 print "`mp[n]`: `$typetext`\n\n";
22
23 print PVE::RESTHandler::dump_properties($mp_prop->{format});