summaryrefslogtreecommitdiff
path: root/sys/scsi/safte.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2005-08-13 01:38:20 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2005-08-13 01:38:20 +0000
commita0d65e78fcb86384e3a326f6f99e574be9931be4 (patch)
tree92a5df27d616bb913aeb6c870c56ea63f4af97ad /sys/scsi/safte.c
parentf0218cabd1d4093af43af5cf1f1b2e05344db7a7 (diff)
let safte match on dell enclosures too. ses takes precedence though
ok marco@ deraadt@
Diffstat (limited to 'sys/scsi/safte.c')
-rw-r--r--sys/scsi/safte.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/scsi/safte.c b/sys/scsi/safte.c
index 9f2c594a2c0..d65fb9f9a77 100644
--- a/sys/scsi/safte.c
+++ b/sys/scsi/safte.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safte.c,v 1.8 2005/08/12 08:50:08 dlg Exp $ */
+/* $OpenBSD: safte.c,v 1.9 2005/08/13 01:38:19 dlg Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -114,6 +114,11 @@ safte_match(struct device *parent, void *match, void *aux)
if (inq == NULL)
return (0);
+ /* match on dell enclosures */
+ if ((inq->device & SID_TYPE) == T_PROCESSOR &&
+ (inq->version & SID_ANSII) == SID_ANSII_SCSI3)
+ return (2);
+
if ((inq->device & SID_TYPE) != T_PROCESSOR ||
(inq->version & SID_ANSII) != SID_ANSII_SCSI2 ||
(inq->response_format & SID_ANSII) != SID_ANSII_SCSI2)
@@ -134,7 +139,7 @@ safte_match(struct device *parent, void *match, void *aux)
return (0);
if (memcmp(si->ident, SAFTE_IDENT, sizeof(si->ident)) == 0)
- return (24);
+ return (2);
return (0);
}