[pve-devel] update disk config, always rescan all the storage, can we avoid that ?

Dietmar Maurer dietmar at proxmox.com
Wed Jun 5 07:35:34 CEST 2013


> 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.


More information about the pve-devel mailing list