[pve-devel] [PATCH v2 storage 3/3] Remove unused pve-storage-monhost format
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Jul 7 11:18:16 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 ca3c284..360ca8c 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