[Kimchi-devel] [PATCH v3 0/5] Allow creating VM storages with ref_cnt > 0

Crístian Deives cristiandeives at gmail.com
Tue May 12 14:58:37 UTC 2015


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

- Patch 2 has been added.
- The UI code has been updated in order to display all volumes from a
  storage volume when attaching a disk to a VM.

Crístian Deives (5):
  fix: Use correct path when setting 'ref_cnt' to a new volume
  Handle invalid path in 'get_disk_ref_cnt'
  Replace storage volume 'ref_cnt' with 'used_by'
  Allow creating VM storages with non-empty 'used_by'
  Set 'used_by' to [] when creating some volumes

 docs/API.md                                |  4 +--
 src/kimchi/control/storagevolumes.py       |  2 +-
 src/kimchi/i18n.py                         |  1 -
 src/kimchi/mockmodel.py                    |  4 +--
 src/kimchi/model/diskutils.py              | 20 ++++++------
 src/kimchi/model/storagevolumes.py         | 33 ++++++++++----------
 src/kimchi/model/vms.py                    | 14 ++++++---
 src/kimchi/model/vmstorages.py             | 50 ++++++++++++++++--------------
 tests/test_model.py                        |  6 ++++
 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 +-
 13 files changed, 76 insertions(+), 66 deletions(-)

-- 
2.1.0




More information about the Kimchi-devel mailing list