[Kimchi-devel] [PATCH 0/3] [issue #731] Raw volumes validation

pvital at linux.vnet.ibm.com pvital at linux.vnet.ibm.com
Tue Sep 15 17:30:16 UTC 2015


From: Paulo Vital <pvital at linux.vnet.ibm.com>

Kimchi allows to attach Raw volumes that are not disk images when editing
a VM. With this, it's possible attach a XML or PDF file (that qemu-img and
libvirt see as raw volumes) as a disk into the guest.

This patch-set introduces a check for all 'raw' volumes to see if them are
valid disks or not (by using libmagic), and then, pass this information to
the front-end to make a correct list of volumes option when attaching a new
one into a VM. 

Paulo Vital (3):
  Raw volumes validation: update contrib and README
  Raw volumes validation: back-end and front-end
  Raw volumes validation: update tests

 contrib/DEBIAN/control.in                  |  3 ++-
 contrib/kimchi.spec.fedora.in              |  1 +
 contrib/kimchi.spec.suse.in                |  1 +
 docs/API.md                                |  1 +
 docs/README.md                             | 11 +++++------
 src/kimchi/control/storagevolumes.py       |  3 ++-
 src/kimchi/mockmodel.py                    |  6 ++++--
 src/kimchi/model/storagevolumes.py         | 15 ++++++++++++++-
 tests/test_model_storagevolume.py          |  2 +-
 ui/js/src/kimchi.guest_storage_add.main.js |  2 +-
 10 files changed, 32 insertions(+), 13 deletions(-)

--
2.4.3




More information about the Kimchi-devel mailing list