summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorNathan Binkert <nate@cvs.openbsd.org>2002-11-30 18:46:57 +0000
committerNathan Binkert <nate@cvs.openbsd.org>2002-11-30 18:46:57 +0000
commita337cb3ce8f0e2a82c15d91b6451f105db1122ce (patch)
treece90e8506277ae8781e7f26168aaa35ca33fd65c /sys/scsi
parent4183cbcf8b0bef0f2e0327ec8bf44ba61bc0ec1d (diff)
Actually implement the NODOORLOCK quirk
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsi_base.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index b6127577e30..2b2b3dcfc4c 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_base.c,v 1.37 2002/09/04 23:11:10 tdeval Exp $ */
+/* $OpenBSD: scsi_base.c,v 1.38 2002/11/30 18:46:56 nate Exp $ */
/* $NetBSD: scsi_base.c,v 1.43 1997/04/02 02:29:36 mycroft Exp $ */
/*
@@ -310,6 +310,9 @@ scsi_prevent(sc_link, type, flags)
{
struct scsi_prevent scsi_cmd;
+ if (sc_link->quirks & ADEV_NODOORLOCK)
+ return 0;
+
bzero(&scsi_cmd, sizeof(scsi_cmd));
scsi_cmd.opcode = PREVENT_ALLOW;
scsi_cmd.how = type;