]> git.proxmox.com Git - pve-storage.git/commitdiff
storage zfs: changed return value description & optionals
authorTim Marx <t.marx@proxmox.com>
Tue, 6 Nov 2018 13:04:33 +0000 (14:04 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 9 Nov 2018 13:49:43 +0000 (14:49 +0100)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
PVE/API2/Disks/ZFS.pm

index 5b63b570de37d1aa97641ec46e588ea39f08bd34..35f5f7a85787b837d506f46c76aaf7833158f774 100644 (file)
@@ -171,25 +171,29 @@ __PACKAGE__->register_method ({
            },
            children => {
                type => 'array',
-               description => "The tree of the vdevs. Depending on the configuration of the zpool, they can be nested.",
+               description => "The pool configuration information, including the vdevs for each section (e.g. spares, cache), may be nested.",
                items => {
                    type => 'object',
                    properties => {
                        name => {
                            type => 'string',
-                           description => 'The name of the vdev.',
+                           description => 'The name of the vdev or section.',
                        },
                        state => {
+                           optional => 1,
                            type => 'string',
                            description => 'The state of the vdev.',
                        },
                        read => {
+                           optional => 1,
                            type => 'number',
                        },
                        write => {
+                           optional => 1,
                            type => 'number',
                        },
                        cksum => {
+                           optional => 1,
                            type => 'number',
                        },
                        msg => {