> This should do the job:
>
> my $size = undef;
>
> eval{
>
> ($size) = PVE::Storage::volume_size_info($storecfg, $volid, 1);The following should also work: $size = PVE::Storage::volume_size_info($storecfg, $volid, 1); And is a timeout of 1 second enough? > }; > die "voluem does not exits" if $@;; > > I can rebase my patch if you want please do. _______________________________________________ pve-devel mailing list [email protected] http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
