-/* $NetBSD: scsiconf.c,v 1.43 1995/10/13 20:01:03 gwr Exp $ */
+/* $NetBSD: scsiconf.c,v 1.45 1995/12/11 04:43:01 mycroft Exp $ */
/*
* Copyright (c) 1994 Charles Hannum. All rights reserved.
int len;
{
- /* Trim leading and trailing blanks. */
- while (len > 0 && src[0] == ' ')
+ /* Trim leading and trailing blanks and NULs. */
+ while (len > 0 && (src[0] == ' ' || src[0] == '\0'))
++src, --len;
- while (len > 0 && src[len-1] == ' ')
+ while (len > 0 && (src[len-1] == ' ' || src[len-1] == '\0'))
--len;
while (len > 0) {
"QUANTUM ", "P105S 910-10-94x", "", SDEV_NOLUNS},
{T_DIRECT, T_FIXED,
"QUANTUM ", "PD1225S ", "", SDEV_NOLUNS},
+ {T_DIRECT, T_FIXED,
+ "QUANTUM ", "PD210S SUN0207", "", SDEV_NOLUNS},
{T_DIRECT, T_FIXED,
"RODIME ", "RO3000S ", "", SDEV_NOLUNS},
{T_DIRECT, T_FIXED,
/* XXX: QIC-36 tape behind Emulex adapter. Very broken. */
{T_SEQUENTIAL, T_REMOV,
" ", " ", " ", SDEV_NOLUNS},
+ {T_SEQUENTIAL, T_REMOV,
+ "CALIPER ", "CP150 ", "", SDEV_NOLUNS},
{T_SEQUENTIAL, T_REMOV,
"EXABYTE ", "EXB-8200 ", "", SDEV_NOLUNS},
{T_SEQUENTIAL, T_REMOV,
"SONY ", "SDT-2000 ", "2.09", SDEV_NOLUNS},
{T_SEQUENTIAL, T_REMOV,
- "SONY ", "SDT-5000 ", "3.17", SDEV_NOSYNCWIDE},
+ "SONY ", "SDT-5000 ", "3.", SDEV_NOSYNCWIDE},
+ {T_SEQUENTIAL, T_REMOV,
+ "SONY ", "SDT-5200 ", "3.", SDEV_NOLUNS},
{T_SEQUENTIAL, T_REMOV,
"TANDBERG", " TDC 3600 ", "", SDEV_NOLUNS},
{T_SEQUENTIAL, T_REMOV,
continue;
priority += len;
-#if 0
+#if SCSIDEBUG
printf("scsi_inqmatch: %d/%d/%d <%s, %s, %s>\n",
priority, match->type, match->removable,
match->vendor, match->product, match->revision);