]> git.proxmox.com Git - qemu.git/commitdiff
raw-posix: Don't use file name for host_cdrom detection on Linux
authorKevin Wolf <kwolf@redhat.com>
Thu, 2 Sep 2010 15:48:32 +0000 (17:48 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Sep 2010 10:39:16 +0000 (12:39 +0200)
On Linux, we have code to detect CD-ROMs using an ioctl. We shouldn't lose
anything but false positives by removing the check for a /dev/cd* path.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c

index 72fb8cebd4a055efeaa5c1d56f410dfd9914d311..0fce449092cbe5925b91177fa028a7edc93c83f1 100644 (file)
@@ -1154,9 +1154,6 @@ static int cdrom_probe_device(const char *filename)
     int fd, ret;
     int prio = 0;
 
-    if (strstart(filename, "/dev/cd", NULL))
-        prio = 50;
-
     fd = open(filename, O_RDONLY | O_NONBLOCK);
     if (fd < 0) {
         goto out;