[pve-devel] [storage] Add option check if the image can safely remove

Dietmar Maurer dietmar at proxmox.com
Tue Nov 13 14:56:09 CET 2018


> > +
> > +		my $storage_is_shared = $cfg->{ids}->{$storeid}->{shared};
> > +		$storage_is_shared = defined($storage_is_shared) ? $storage_is_shared : 0;
> 
> above 2 lines looks quite strange, at least I do not understand what it does exactly?. Simple use:
> 
> my $storage_is_shared = defined($cfg->{ids}->{$storeid}->{shared});

Sorry, this was wrong. I guess the correct way is:

my $storage_is_shared = $cfg->{ids}->{$storeid}->{shared};




More information about the pve-devel mailing list