[PATCH 0/9] Make capacity optional when creating volumes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If the volume has a <backingStore> or we are cloning a volume,
we don't need to know the capacity upfront.

https://bugzilla.redhat.com/show_bug.cgi?id=958510

Ján Tomko (9):
  Add flags argument to virStorageVolDefParse*
  Parse backingStore before capacity in volume XML
  Allow parsing volumes without specifying the capacity
  Allow cloning volumes with no capacity specified
  Fix error messages in virStorageFileGetMetadataFromFD
  Probe for capacity in virStorageBackendUpdateVolTargetInfo
  Revert "Restore skipping of setting capacity"
  Allow omitting volume capacity when backing store is specified
  Allow creating volumes with a backing store but no capacity

 src/conf/storage_conf.c                            | 99 ++++++++++++----------
 src/conf/storage_conf.h                            | 15 +++-
 src/esx/esx_storage_backend_vmfs.c                 |  4 +-
 src/parallels/parallels_storage.c                  |  6 +-
 src/phyp/phyp_driver.c                             |  2 +-
 src/storage/storage_backend.c                      | 60 +++++++++----
 src/storage/storage_backend.h                      |  5 +-
 src/storage/storage_backend_disk.c                 |  4 +-
 src/storage/storage_backend_fs.c                   | 17 ++--
 src/storage/storage_backend_gluster.c              |  2 +-
 src/storage/storage_backend_logical.c              |  2 +-
 src/storage/storage_backend_mpath.c                |  2 +-
 src/storage/storage_backend_rbd.c                  |  6 ++
 src/storage/storage_backend_scsi.c                 |  2 +-
 src/storage/storage_backend_sheepdog.c             |  6 ++
 src/storage/storage_driver.c                       | 17 +++-
 src/test/test_driver.c                             |  6 +-
 src/util/virstoragefile.c                          |  4 +-
 src/vbox/vbox_storage.c                            |  2 +-
 tests/storagebackendsheepdogtest.c                 |  2 +-
 .../qcow2-nocapacity-convert-prealloc.argv         |  4 +
 tests/storagevolxml2argvdata/qcow2-nocapacity.argv |  5 ++
 tests/storagevolxml2argvtest.c                     | 29 +++++--
 .../vol-qcow2-nocapacity-backing.xml               | 23 +++++
 tests/storagevolxml2xmlin/vol-qcow2-nocapacity.xml | 19 +++++
 .../storagevolxml2xmlout/vol-qcow2-nocapacity.xml  | 21 +++++
 tests/storagevolxml2xmltest.c                      | 15 ++--
 27 files changed, 269 insertions(+), 110 deletions(-)
 create mode 100644 tests/storagevolxml2argvdata/qcow2-nocapacity-convert-prealloc.argv
 create mode 100644 tests/storagevolxml2argvdata/qcow2-nocapacity.argv
 create mode 100644 tests/storagevolxml2xmlin/vol-qcow2-nocapacity-backing.xml
 create mode 100644 tests/storagevolxml2xmlin/vol-qcow2-nocapacity.xml
 create mode 100644 tests/storagevolxml2xmlout/vol-qcow2-nocapacity.xml

-- 
2.0.5

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list





[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux