https://bugzilla.redhat.com/show_bug.cgi?id=830056
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:
(Cover)
https://www.redhat.com/archives/libvir-list/2012-July/msg00494.html
and
(libvirt API, storage driver changes)
https://www.redhat.com/archives/libvir-list/2012-July/msg01328.html
and
(virsh changes)
https://www.redhat.com/archives/libvir-list/2012-July/msg00497.html
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(-)