Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/scsipi Add PQUIRK_ONLYBIG for Oracle OCI BlockVolumes.



details:   https://anonhg.NetBSD.org/src/rev/687410b22e10
branches:  trunk
changeset: 371880:687410b22e10
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Oct 15 18:42:49 2022 +0000

description:
Add PQUIRK_ONLYBIG for Oracle OCI BlockVolumes.

Oracle cloud BlockVolumes do not appear to support SCSI READ6 or WRITE6
commands, so set PQUIRK_ONLYBIG to avoid it here.

diffstat:

 sys/dev/scsipi/scsiconf.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r e6e081611d78 -r 687410b22e10 sys/dev/scsipi/scsiconf.c
--- a/sys/dev/scsipi/scsiconf.c Sat Oct 15 18:32:30 2022 +0000
+++ b/sys/dev/scsipi/scsiconf.c Sat Oct 15 18:42:49 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: scsiconf.c,v 1.302 2022/04/14 16:50:26 pgoyette Exp $  */
+/*     $NetBSD: scsiconf.c,v 1.303 2022/10/15 18:42:49 jmcneill Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2004 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.302 2022/04/14 16:50:26 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: scsiconf.c,v 1.303 2022/10/15 18:42:49 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -792,6 +792,8 @@
         "SEAGATE ", "SX336704LC"   , ""}, PQUIRK_CAP_SYNC | PQUIRK_CAP_WIDE16},
        {{T_DIRECT, T_FIXED,
         "SEAGATE ", "SX173404LC",       ""},     PQUIRK_CAP_SYNC | PQUIRK_CAP_WIDE16},
+       {{T_DIRECT, T_FIXED,
+        "ORACLE",   "BlockVolume",      ""},     PQUIRK_ONLYBIG},
 
        {{T_DIRECT, T_REMOV,
         "IOMEGA", "ZIP 100",            "J.03"}, PQUIRK_NOLUNS|PQUIRK_NOSYNC},



Home | Main Index | Thread Index | Old Index