Re: [PATCH 12/35] qemu: domain: Store whether a virStorageSource is a host CDROM drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 04/25/2018 11:15 AM, Peter Krempa wrote:
> Use virFileIsCdrom to detect whether a block device is a cdrom drive and
> store it in virStorageSource. This will be necessary to correctly create
> the 'host_cdrom' backend in qemu when using -blockdev.
> 
> We assume that host_cdrom makes only sense when used directly as a raw
> image, but if a backing chain would be put in front of it, libvirt will
> use 'host_device' in that case.
> 
> Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
> ---
>  src/qemu/qemu_domain.c    | 8 ++++++++
>  src/util/virstoragefile.h | 2 ++
>  2 files changed, 10 insertions(+)
> 

If you do change the method name as suggested in 11, be sure to update
this commit message too.

Reviewed-by: John Ferlan <jferlan@xxxxxxxxxx>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux