[pve-devel] [PATCH storage 3/3] Remove unused pve-storage-monhost format

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Jul 6 16:04:50 CEST 2016


---
 PVE/Storage/RBDPlugin.pm | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index 55c307b..d189fe3 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -222,18 +222,6 @@ sub rbd_volume_info {
 
 # Configuration
 
-PVE::JSONSchema::register_format('pve-storage-monhost', \&parse_monhost);
-sub parse_monhost {
-    my ($name, $noerr) = @_;
-
-    if ($name !~ m/^[a-z][a-z0-9\-\_\.]*[a-z0-9]$/i) {
-	return undef if $noerr;
-	die "lvm name '$name' contains illegal characters\n";
-    }
-
-    return $name;
-}
-
 sub type {
     return 'rbd';
 }
-- 
2.1.4





More information about the pve-devel mailing list