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

John Ferlan jferlan at redhat.com
Wed May 2 18:49:48 UTC 2018



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 at redhat.com>
> ---
>  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 at redhat.com>




More information about the libvir-list mailing list