提交 e1740828 编写于 作者: C Corey Bryant 提交者: Kevin Wolf

block: Prevent detection of /dev/fdset/ as floppy

Signed-off-by: NCorey Bryant <coreyb@linux.vnet.ibm.com>
Signed-off-by: NKevin Wolf <kwolf@redhat.com>
上级 ba1c048a
......@@ -1052,8 +1052,10 @@ static int floppy_probe_device(const char *filename)
struct floppy_struct fdparam;
struct stat st;
if (strstart(filename, "/dev/fd", NULL))
if (strstart(filename, "/dev/fd", NULL) &&
!strstart(filename, "/dev/fdset/", NULL)) {
prio = 50;
}
fd = open(filename, O_RDONLY | O_NONBLOCK);
if (fd < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册