]> git.proxmox.com Git - pve-storage.git/blobdiff - PVE/API2/Disks/LVMThin.pm
rename check_available to assert_sid_unused
[pve-storage.git] / PVE / API2 / Disks / LVMThin.pm
index 717897d8b3c94d8fee25ea97f7bdcb276aaac676..596d39347be534ee387d6cd0b8cced0f34d2601c 100644 (file)
@@ -104,7 +104,7 @@ __PACKAGE__->register_method ({
 
        $dev = PVE::Diskmanage::verify_blockdev_path($dev);
        PVE::Diskmanage::check_unused($dev);
-       PVE::Storage::check_available($name) if $param->{add_storage};
+       PVE::Storage::assert_sid_unused($name) if $param->{add_storage};
 
        my $worker = sub {
            PVE::Diskmanage::locked_disk_action(sub {