[pve-devel] [PATCH] Use enums for smbvers to prevent incorrect input

Wolfgang Link w.link at proxmox.com
Wed Jun 6 13:23:29 CEST 2018


---
 PVE/Storage/CIFSPlugin.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/PVE/Storage/CIFSPlugin.pm b/PVE/Storage/CIFSPlugin.pm
index cb7c844..2124c87 100644
--- a/PVE/Storage/CIFSPlugin.pm
+++ b/PVE/Storage/CIFSPlugin.pm
@@ -104,8 +104,9 @@ sub properties {
 	    maxLength => 256,
 	},
 	smbversion => {
-	    description => "",
+	    description => "SMB protokoll version",
 	    type => 'string',
+	    enum => ['2.0', '2.1', '3.0'],
 	    optional => 1,
 	},
     };
-- 
2.11.0





More information about the pve-devel mailing list