[libvirt] [PATCH 0/6] Add build options to pool create[-as] and start

John Ferlan jferlan at redhat.com
Wed Nov 25 19:11:02 UTC 2015


Add the capability to build the pool during pool creation or startup

NOTE: If patches 2-4 regarding usage of #define for repeated command
options are acceptible, I can start doing the same for other virsh
commands. I just found it easier and I think better than the need to
continually cut-n-paste for each command option entry. If it's preferred
to keep cut-n-paste'ing, then I can modify patch 5 & 6 to follow that model.

NOTE: Based loosely on patches posted quite a while ago by Osier Yang
before he left Red Hat, see:



(libvirt API, storage driver changes)


(virsh changes)

John Ferlan (6):
  storage: Add flags to allow building pool during create processing
  virsh: Create macro for "pool" option
  virsh: Create macro for "file" option
  virsh: Create macro for "overwrite" and no-overwrite" options
  virsh: Create a macro for pool-define-as and pool-create-as options
  virsh: Add build flags to pool-create[-as] and pool-start

 include/libvirt/libvirt-storage.h |  16 +-
 src/libvirt-storage.c             |   4 +-
 src/storage/storage_driver.c      |  42 ++++-
 tools/virsh-pool.c                | 360 ++++++++++++++++++++++----------------
 tools/virsh.pod                   |  25 ++-
 5 files changed, 288 insertions(+), 159 deletions(-)


More information about the libvir-list mailing list