The difference between this and the previous patchset is:
- Patches 1 and 4 have been added to fix some related bugs.
- Patch 2 has been added to change ref_cnt to used_by. ref_cnt indicated how
many VMs used a storage volume, whereas used_by indicate which VMs use a
storage volume.
CrÃstian Deives (4):
fix: Use correct path when setting 'ref_cnt' to a new volume
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 | 18 ++++++-------
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 +-
11 files changed, 73 insertions(+), 63 deletions(-)
--
2.1.0