]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Option for overriding disk type in attach-disk
authorJiri Denemark <jdenemar@redhat.com>
Fri, 10 Sep 2010 11:37:55 +0000 (13:37 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 10 Sep 2010 11:46:42 +0000 (13:46 +0200)
commitdfec22cc6035a95ff1c7609ea060029cb99182cc
tree3896fb3c17bef21901b370ea1acf7c260cb891fa
parent690583f790e267f9558d258b6c7cc092469f38e4
virsh: Option for overriding disk type in attach-disk

Unless --driver tap|file option was given to attach-disk, virsh would
generate <disk type='block'> XML which might be fine for Xen but not for
other hypervisors. This patch introduces a new option --sourcetype which
can be used to explicitly set the type of disk source. The option
accepts either "file" or "block" types.
tools/virsh.c