diff --git a/PVE/Storage/ISCSIDirectPlugin.pm b/PVE/Storage/ISCSIDirectPlugin.pm index 3aa28b1..322de52 100644 --- a/PVE/Storage/ISCSIDirectPlugin.pm +++ b/PVE/Storage/ISCSIDirectPlugin.pm @@ -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;