[Kimchi-devel] [PATCHv5 0/6] Add volume reference count
lvroyce at linux.vnet.ibm.com
lvroyce at linux.vnet.ibm.com
Tue Mar 4 07:38:42 UTC 2014
From: Royce Lv <lvroyce at linux.vnet.ibm.com>
tested:
1. sudo make check
2. from UI: list storage volumes and unrefered volume ref_cnt is 0,
ref_cnt for refered ones are 1.
Available volumes will be tracked by volume reference count.
Add this field to storage volume,
so that storage volume/pool action validation can rely on it.
Royce Lv (6):
Fix vm disk path when it does not have source element
Add volume ref_cnt: update api.md
Add volume ref_cnt: Update controller and json schema
Add volume ref_cnt: Add model and mockmodel implementation
Add volume ref_cnt: Update test
Multiple pep8 fixes
docs/API.md | 3 +++
src/kimchi/API.json | 25 +++++++++++++++++++++++++
src/kimchi/control/storagevolumes.py | 1 +
src/kimchi/i18n.py | 4 ++++
src/kimchi/isoinfo.py | 4 ++--
src/kimchi/mockmodel.py | 10 +++++++---
src/kimchi/model/debugreports.py | 2 +-
src/kimchi/model/storageservers.py | 4 ++--
src/kimchi/model/storagevolumes.py | 32 ++++++++++++++++++++++++++++++++
src/kimchi/model/templates.py | 2 +-
src/kimchi/model/vmstorages.py | 23 +++++++++++++----------
tests/test_model.py | 10 +++++++---
tests/test_rest.py | 2 ++
13 files changed, 100 insertions(+), 22 deletions(-)
--
1.8.1.2
More information about the Kimchi-devel
mailing list