[Kimchi-devel] [PATCH v4 0/2] Replace storage volume 'ref_cnt' with 'used_by'

Crístian Deives cristiandeives at gmail.com
Thu May 28 15:09:15 UTC 2015


The difference between this and the previous patchset (v3) is:

- The UI stays consistent with the previous behavior, i.e., it won't display
  disks which are used by other VMs.

Crístian Deives (2):
  Replace storage volume 'ref_cnt' with 'used_by'
  Set 'used_by' to [] when creating some volumes

 docs/API.md                                |  4 +--
 src/kimchi/control/storagevolumes.py       |  2 +-
 src/kimchi/mockmodel.py                    |  4 +--
 src/kimchi/model/diskutils.py              | 18 +++++------
 src/kimchi/model/storagevolumes.py         | 25 +++++++--------
 src/kimchi/model/vms.py                    | 14 ++++++---
 src/kimchi/model/vmstorages.py             | 50 ++++++++++++++++--------------
 tests/test_model_storagevolume.py          |  2 +-
 tests/test_rest.py                         |  2 +-
 ui/js/src/kimchi.guest_storage_add.main.js |  2 +-
 ui/js/src/kimchi.storage_main.js           |  2 +-
 11 files changed, 64 insertions(+), 61 deletions(-)

-- 
2.4.1




More information about the Kimchi-devel mailing list