[pve-devel] [PATCH v3 storage 2/3] storage zfs: changed return value description & optionals

Tim Marx t.marx at proxmox.com
Tue Nov 6 14:04:33 CET 2018


Signed-off-by: Tim Marx <t.marx at proxmox.com>
---
 PVE/API2/Disks/ZFS.pm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/PVE/API2/Disks/ZFS.pm b/PVE/API2/Disks/ZFS.pm
index 5b63b57..35f5f7a 100644
--- a/PVE/API2/Disks/ZFS.pm
+++ b/PVE/API2/Disks/ZFS.pm
@@ -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 => {
-- 
2.11.0




More information about the pve-devel mailing list