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

Wolfgang Bumiller w.bumiller at proxmox.com
Mon Jul 11 13:55:49 CEST 2016


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

diff --git a/PVE/Storage/RBDPlugin.pm b/PVE/Storage/RBDPlugin.pm
index 2788a34..7a08ff5 100644
--- a/PVE/Storage/RBDPlugin.pm
+++ b/PVE/Storage/RBDPlugin.pm
@@ -232,18 +232,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