[pve-devel] [PATCH storage v2 2/3] add missing storage check in LVM Disk API
Dominik Csapak
d.csapak at proxmox.com
Tue Sep 25 10:38:01 CEST 2018
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
changes from v1:
* new in v2
* only adds the missing check in lvm
PVE/API2/Disks/LVM.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/PVE/API2/Disks/LVM.pm b/PVE/API2/Disks/LVM.pm
index 009ee0d..82c1502 100644
--- a/PVE/API2/Disks/LVM.pm
+++ b/PVE/API2/Disks/LVM.pm
@@ -150,6 +150,7 @@ __PACKAGE__->register_method ({
$dev = PVE::Diskmanage::verify_blockdev_path($dev);
PVE::Diskmanage::check_unused($dev);
+ PVE::Storage::check_available($name);
my $worker = sub {
PVE::Diskmanage::locked_disk_action(sub {
--
2.11.0
More information about the pve-devel
mailing list