X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=PVE%2FStorage%2FNexentaPlugin.pm;h=93cd0cffc50298812fdd79796b5f1697dbb7f438;hb=0b79e98ccb1dd2d6500d4cfbc9a552f04d7d3a22;hp=857df542298286136eea028fabd94fc7fef1c1d3;hpb=c55a499dfe32a157f4de2fc8e287c812bc3df74b;p=pve-storage.git diff --git a/PVE/Storage/NexentaPlugin.pm b/PVE/Storage/NexentaPlugin.pm index 857df54..93cd0cf 100644 --- a/PVE/Storage/NexentaPlugin.pm +++ b/PVE/Storage/NexentaPlugin.pm @@ -42,7 +42,10 @@ sub nexenta_request { sub nexenta_get_zvol_size { my ($scfg, $zvol) = @_; - return nexenta_request($scfg, 'get_child_prop', 'zvol', $zvol, 'size_bytes'); + my $ret = nexenta_request($scfg, 'get_child_prop', 'zvol', $zvol, 'size_bytes'); + $ret =~ m/^(\d+)$/ or die "size is not valid"; + my $size = $1; + return $size; } sub nexenta_get_zvol_props {