5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2024-12-23 17:34:34 +03:00

ISCSIDirect : volume_size_info

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
Alexandre Derumier 2012-08-05 10:16:50 +02:00 committed by Dietmar Maurer
parent 3a0c324642
commit 6f714585f2

View File

@ -182,7 +182,10 @@ sub deactivate_volume {
sub volume_size_info {
my ($class, $scfg, $storeid, $volname, $timeout) = @_;
return undef;
my $vollist = iscsi_ls($scfg,$storeid);
my $info = $vollist->{$storeid}->{$volname};
return $info->{size};
}
1;