]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Allow attach-disk to specify disk target bus
authorYanbing Du <ydu@ydu-0.nay.redhat.com>
Tue, 1 Jul 2014 10:02:03 +0000 (18:02 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 2 Jul 2014 11:01:45 +0000 (13:01 +0200)
commit7e157858b4b215090e9e1980e1ce1485a9641874
tree68a568a1ce980a97fd76ea0583a7cd6b70f1984a
parent1cd8f500ee133653ecb9d1b7f72b2b2e9870a1c3
virsh: Allow attach-disk to specify disk target bus

By default, the bus type is inferred from the style of the device
name('target' in this command), e.g. a device named 'sda' will
typically be exported using a SCSI bus. Actually, not only SCSI bus,
but USB/SATA bus also use this kind of device name. So add '--bus'
option for attach-disk command to allow user specify the target bus.

Signed-off-by: Yanbing Du <ydu@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c
tools/virsh.pod