summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-11-21 23:02:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-11-21 23:02:38 +0000
commitce5caeba532526fa17bf47fa018447d619c27448 (patch)
treeb4e783ccfb0c7f640bba05655e4daee700ace1fb /sys/arch/sparc64
parentc779b03a81dabef8a9215aed77fd249b9813e5bc (diff)
Atempting to eject a CD-ROM makes the SCSI midlayer generate a READ_TOC
command. Silently fail that command instead of spamming the console.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/dev/vdsk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc64/dev/vdsk.c b/sys/arch/sparc64/dev/vdsk.c
index 9dd03d0eeea..a12e88f819d 100644
--- a/sys/arch/sparc64/dev/vdsk.c
+++ b/sys/arch/sparc64/dev/vdsk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vdsk.c,v 1.31 2012/11/21 21:20:13 kettenis Exp $ */
+/* $OpenBSD: vdsk.c,v 1.32 2012/11/21 23:02:37 kettenis Exp $ */
/*
* Copyright (c) 2009, 2011 Mark Kettenis
*
@@ -27,6 +27,7 @@
#include <uvm/uvm.h>
#include <scsi/scsi_all.h>
+#include <scsi/cd.h>
#include <scsi/scsi_disk.h>
#include <scsi/scsiconf.h>
@@ -960,6 +961,7 @@ vdsk_scsi_cmd(struct scsi_xfer *xs)
case MODE_SENSE:
case MODE_SENSE_BIG:
case REPORT_LUNS:
+ case READ_TOC:
vdsk_scsi_done(xs, XS_DRIVER_STUFFUP);
return;
}