Add --source-format argument to virsh pool-define-as and pool-create-as
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.

bjzhang/libvirt,agx/libvirt,shugaoye/libvirt,rlaager/libvirt,usc-isi/libvirt,wiedi/libvirt,soulxu/libvirt-xuhj,bjzhang/libvirt,amery/libvirt-vserver,wiedi/libvirt,VenkatDatta/libvirt,jeckersb/libvirt,amery/libvirt-vserver,crobinso/libvirt,cbosdo/libvirt,foomango/libvirt,rmarwaha/libvirt1,jardasgit/libvirt,rlaager/libvirt,bjzhang/libvirt,agx/libvirt,iam-TJ/libvirt,shugaoye/libvirt,libvirt/libvirt,rmarwaha/libvirt,trainstack/libvirt,andreabolognani/libvirt,trainstack/libvirt,wiedi/libvirt,danwent/libvirt-ovs,emaste/libvirt,bjzhang/libvirt,VenkatDatta/libvirt,rmarwaha/libvirt1,danwent/libvirt-ovs,jfehlig/libvirt,taget/libvirt,trainstack/libvirt,wiedi/libvirt,cbosdo/libvirt,usc-isi/libvirt,jfehlig/libvirt,dumbbell/libvirt,fabianfreyer/libvirt,rmarwaha/libvirt1,wiedi/libvirt,leilihh/libvirt,jeckersb/libvirt,warewolf/libvirt,emaste/libvirt,datto/libvirt,VenkatDatta/libvirt,crobinso/libvirt,kantai/libvirt-vfork,olafhering/libvirt,agx/libvirt,jardasgit/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,leilihh/libvirt,zippy2/libvirt,zhlcindy/libvirt-1.1.4-maintain,agx/libvirt,danwent/libvirt-ovs,fabianfreyer/libvirt,eskultety/libvirt,rmarwaha/libvirt1,trainstack/libvirt,zhlcindy/libvirt-1.1.4-maintain,rmarwaha/libvirt,jardasgit/libvirt,shugaoye/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,andreabolognani/libvirt,zippy2/libvirt,rbu/libvirt,jeckersb/libvirt,elmarco/libvirt,olafhering/libvirt,rbu/libvirt,iam-TJ/libvirt,rlaager/libvirt,warewolf/libvirt,foomango/libvirt,jfehlig/libvirt,usc-isi/libvirt,jeckersb/libvirt,olafhering/libvirt,emaste/libvirt,jfehlig/libvirt,novel/fbsd-libvirt,siboulet/libvirt-openvz,trainstack/libvirt,dumbbell/libvirt,datto/libvirt,amery/libvirt-vserver,olafhering/libvirt,warewolf/libvirt,crobinso/libvirt,nertpinx/libvirt,emaste/libvirt,jeckersb/libvirt,elmarco/libvirt,rmarwaha/libvirt,VenkatDatta/libvirt,cbosdo/libvirt,emaste/libvirt,eskultety/libvirt,siboulet/libvirt-openvz,siboulet/libvirt-openvz,crobinso/libvirt,novel/fbsd-libvirt,eskultety/libvirt,novel/fbsd-libvirt,taget/libvirt,rbu/libvirt,dumbbell/libvirt,rmarwaha/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,leilihh/libvirt,VenkatDatta/libvirt,jeckersb/libvirt,eskultety/libvirt,fabianfreyer/libvirt,siboulet/libvirt-openvz,jardasgit/libvirt,rlaager/libvirt,nertpinx/libvirt,kantai/libvirt-vfork,leilihh/libvirt,danwent/libvirt-ovs,sshah-solarflare/Libvirt-PCI-passthrough-,warewolf/libvirt,emaste/libvirt,warewolf/libvirt,rmarwaha/libvirt1,usc-isi/libvirt,libvirt/libvirt,nertpinx/libvirt,bjzhang/libvirt,wiedi/libvirt,jardasgit/libvirt,soulxu/libvirt-xuhj,rmarwaha/libvirt1,soulxu/libvirt-xuhj,iam-TJ/libvirt,iam-TJ/libvirt,taget/libvirt,nertpinx/libvirt,rmarwaha/libvirt,emaste/libvirt,libvirt/libvirt,zippy2/libvirt,eskultety/libvirt,agx/libvirt,rbu/libvirt,novel/fbsd-libvirt,datto/libvirt,usc-isi/libvirt,soulxu/libvirt-xuhj,siboulet/libvirt-openvz,warewolf/libvirt,novel/fbsd-libvirt,fabianfreyer/libvirt,novel/fbsd-libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,zippy2/libvirt,andreabolognani/libvirt,amery/libvirt-vserver,elmarco/libvirt,datto/libvirt,andreabolognani/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,novel/fbsd-libvirt,rlaager/libvirt,taget/libvirt,kantai/libvirt-vfork,andreabolognani/libvirt,nertpinx/libvirt,kantai/libvirt-vfork,soulxu/libvirt-xuhj,zhlcindy/libvirt-1.1.4-maintain,libvirt/libvirt,rbu/libvirt,amery/libvirt-vserver,elmarco/libvirt,iam-TJ/libvirt,elmarco/libvirt,cbosdo/libvirt,foomango/libvirt,foomango/libvirt,iam-TJ/libvirt,trainstack/libvirt,foomango/libvirt,dumbbell/libvirt,zhlcindy/libvirt-1.1.4-maintain,dumbbell/libvirt,rmarwaha/libvirt,cbosdo/libvirt,leilihh/libvirt,leilihh/libvirt,novel/fbsd-libvirt,warewolf/libvirt,danwent/libvirt-ovs,jeckersb/libvirt,wiedi/libvirt,taget/libvirt,datto/libvirt,shugaoye/libvirt,trainstack/libvirt,kantai/libvirt-vfork,iam-TJ/libvirt,dumbbell/libvirt