5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-02-09 09:57:38 +03:00

fix return value for path()

This commit is contained in:
Dietmar Maurer 2012-05-23 13:11:20 +02:00
parent be2e0c16b1
commit 5521b5805b
3 changed files with 3 additions and 3 deletions

View File

@ -575,7 +575,7 @@ sub activate_volumes {
activate_storage_list($cfg, [keys %$storagehash], $cache);
foreach my $volid (@$vollist) {
my ($storeid, $volname) = parse_volume_id ($volid);
my ($storeid, $volname) = parse_volume_id($volid);
my $scfg = storage_config($cfg, $storeid);
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
$plugin->activate_volume($storeid, $scfg, $volname, $exclusive, $cache);

View File

@ -280,7 +280,7 @@ sub path {
my $path = "/dev/disk/by-id/$name";
return ($path, $vmid, $vtype);
return wantarray ? ($path, $vmid, $vtype) : $path;
}
sub alloc_image {

View File

@ -231,7 +231,7 @@ sub path {
my $path = "/dev/$vg/$name";
return ($path, $vmid, $vtype);
return wantarray ? ($path, $vmid, $vtype) : $path;
}
sub alloc_image {