]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Add --source-format argument to virsh pool-define-as and pool-create-as
authorJustin Clift <justin@salasaga.org>
Sun, 30 May 2010 14:24:45 +0000 (00:24 +1000)
committerEric Blake <eblake@redhat.com>
Tue, 1 Jun 2010 22:57:17 +0000 (16:57 -0600)
commitb221973a11e2f490a9e8e10bc598e7c2ddbaf2d8
treef52b368260e3cc04b58d6d638c23b5876ecb3b42
parente5f31f461f63bbad211e84b810d6ba43a705f9dd
Add --source-format argument to virsh pool-define-as and pool-create-as

When creating pools from dedicated disks, the existing pool-define-as
and pool-create-as commands are a bit non-optimal.

Ideally, a person would be able to specify all of the required options
directly on the command line instead of having to edit the XML.

At the moment, there is no way to specify the format type (ie gpt) so it
gets included in the XML the pool is constructed with.

Please find attached a simple (tested) patch to add an optional
"--source-format 'type'" to virsh.  This is patched against current git
master and will apply cleanly.

Also created a Red Hat BZ ticket for this (#597790) for tracking.
tools/virsh.c