projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b407a81
)
raw-posix: Don't use file name for host_cdrom detection on Linux
author
Kevin Wolf
<kwolf@redhat.com>
Thu, 2 Sep 2010 15:48:32 +0000
(17:48 +0200)
committer
Kevin 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
patch
|
blob
|
history
diff --git
a/block/raw-posix.c
b/block/raw-posix.c
index 72fb8cebd4a055efeaa5c1d56f410dfd9914d311..0fce449092cbe5925b91177fa028a7edc93c83f1 100644
(file)
--- a/
block/raw-posix.c
+++ b/
block/raw-posix.c
@@
-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;