[libvirt] [libvirt PATCH] udev: consider the device a CDROM when ID_CDROM=1

Daniel P. Berrange berrange at redhat.com
Wed Apr 30 14:07:47 UTC 2014


On Wed, Apr 23, 2014 at 12:42:01PM +0200, Giuseppe Scrivano wrote:
> Some CDROM devices are reported by udev to have an ID_TYPE="generic"
> thus it is necessary to check if ID_CDROM is present.
> 
> As a side effect, treating ID_TYPE="generic" as a missing ID_TYPE will
> enable checks for ID_DRIVE_FLASH_SD and ID_DRIVE_FLOPPY and the
> udevKludgeStorageType heuristic.
> 
> Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
> ---
>  src/node_device/node_device_udev.c | 11 +++++++++--
>  1 file changed, 9 insertions(+), 2 deletions(-)

ACK


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list