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