[pve-devel] [PATCH] remove vm permissions after vm destroy

Dietmar Maurer dietmar at proxmox.com
Wed Aug 12 16:41:40 CEST 2015


I just wonder if we can avoid multiple locks/writes on user.cfg file, by 
adding an additional function which does both things at once?


> @@ -1204,6 +1193,8 @@ __PACKAGE__->register_method({
>  	    PVE::QemuServer::vm_destroy($storecfg, $vmid, $skiplock);
>  
>  	    PVE::AccessControl::remove_vm_from_pool($vmid);
> +
> +	    PVE::AccessControl::remove_vm_permissions($vmid);




More information about the pve-devel mailing list