From d1ad6a0cc63aa195cbf4aa2ab188c10cd2ae9b26 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Fri, 31 Mar 2017 20:09:27 +0200 Subject: [PATCH] B #5032: Further fixes for SELF DS (e.g. Ceph) for disks with resizes and snapshots. Also updates delete-recreate quota computation --- include/Quotas.h | 2 +- include/Template.h | 12 +++ include/VirtualMachine.h | 10 ++- include/VirtualMachineDisk.h | 13 ++- src/dm/DispatchManagerActions.cc | 8 +- src/lcm/LifeCycleActions.cc | 8 +- src/lcm/LifeCycleStates.cc | 54 ++++++++---- src/rm/RequestManagerVirtualMachine.cc | 111 +++++++++++++++---------- src/um/Quotas.cc | 39 +++++---- src/vm/VirtualMachineDisk.cc | 47 ++++++++--- 10 files changed, 201 insertions(+), 103 deletions(-) diff --git a/include/Quotas.h b/include/Quotas.h index d2da91e913..2a7c97b65d 100644 --- a/include/Quotas.h +++ b/include/Quotas.h @@ -206,7 +206,7 @@ public: * *ARE FREED* by this function * @param ds_quotas a map with image_id and a tmpl with usage attributes */ - static void ds_del(map& ds_quotas); + static void ds_del_recreate(int uid, int gid, vector