[pve-devel] Pool View
Dietmar Maurer
dietmar at proxmox.com
Mon Aug 11 07:35:11 CEST 2014
Another question: A storage can be assigned to several pools, but it seems you
assume a storage is assigned to a single pool? So how is that code expected to
work?
> __PACKAGE__->register_method ({
> @@ -160,12 +162,20 @@ __PACKAGE__->register_method({
> my $vmlist = PVE::Cluster::get_vmlist() || {};
> my $idlist = $vmlist->{ids} || {};
>
> + my $storage_pool = {};
> +
> + foreach my $pool (keys(%{$usercfg->{pools}})) {
> + foreach my $storage (keys(%{$usercfg->{pools}->{$pool}-
> >{storage}})) {
> + $storage_pool->{$storage}=$pool;
> + }
> + }
> +
More information about the pve-devel
mailing list