mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 16:49:40 +00:00
Bestmatch check for cd-drive always faild due to additional space
on manufacture and other items. So it's never probe as MORE_LUNS after frist SONY entry....
This commit is contained in:
parent
f53dbe9765
commit
634ccfcbf6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=9225
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* New configuration setup: dufault@hda.com
|
* New configuration setup: dufault@hda.com
|
||||||
*
|
*
|
||||||
* $Id: scsiconf.c,v 1.29 1995/05/03 18:09:13 dufault Exp $
|
* $Id: scsiconf.c,v 1.30 1995/05/30 08:13:45 rgrimes Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -261,13 +261,21 @@ static struct scsidevs knowndevs[] =
|
|||||||
#if NCD > 0
|
#if NCD > 0
|
||||||
#ifndef UKTEST /* make cdroms unrecognised to test the uk driver */
|
#ifndef UKTEST /* make cdroms unrecognised to test the uk driver */
|
||||||
{
|
{
|
||||||
T_READONLY, T_REMOV, "SONY", "CD-ROM CDU-8012", "3.1a",
|
T_READONLY, T_REMOV, "SONY", "CD-ROM CDU-8012", "3.1a",
|
||||||
"cd", SC_ONE_LU
|
"cd", SC_ONE_LU
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
T_READONLY, T_REMOV, "PIONEER", "CD-ROM DRM-600", "*",
|
T_READONLY, T_REMOV, "PIONEER", "CD-ROM DRM-600", "*",
|
||||||
"cd", SC_MORE_LUS
|
"cd", SC_MORE_LUS
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
T_READONLY, T_REMOV, "PIONEER", "CD-ROM DRM-602X" ,"*",
|
||||||
|
"cd", SC_MORE_LUS
|
||||||
|
},
|
||||||
|
{
|
||||||
|
T_READONLY, T_REMOV, "CHINON", "CD-ROM CDS-535","*",
|
||||||
|
"cd", SC_ONE_LU
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
#endif /* NCD */
|
#endif /* NCD */
|
||||||
{
|
{
|
||||||
@ -301,13 +309,21 @@ static struct scsidevs knowndevs[] =
|
|||||||
#if NCD > 0
|
#if NCD > 0
|
||||||
#ifndef UKTEST /* make cdroms unrecognised to test the uk driver */
|
#ifndef UKTEST /* make cdroms unrecognised to test the uk driver */
|
||||||
{
|
{
|
||||||
T_READONLY, T_REMOV, "SONY ", "CD-ROM CDU-8012 "
|
T_READONLY, T_REMOV, "SONY", "CD-ROM CDU-8012"
|
||||||
,"3.1a", "cd", SC_ONE_LU
|
,"3.1a", "cd", SC_ONE_LU
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
T_READONLY, T_REMOV, "PIONEER ", "CD-ROM DRM-600 "
|
T_READONLY, T_REMOV, "PIONEER", "CD-ROM DRM-600"
|
||||||
,"any", "cd", SC_MORE_LUS
|
,"any", "cd", SC_MORE_LUS
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
T_READONLY, T_REMOV, "PIONEER", "CD-ROM DRM-602X"
|
||||||
|
,"any", "cd", SC_MORE_LUS
|
||||||
|
},
|
||||||
|
{
|
||||||
|
T_READONLY, T_REMOV, "CHINON", "CD-ROM CDS-535"
|
||||||
|
,"any", "cd", SC_ONE_LU
|
||||||
|
},
|
||||||
#endif
|
#endif
|
||||||
#endif /* NCD */
|
#endif /* NCD */
|
||||||
{
|
{
|
||||||
@ -1251,7 +1267,7 @@ scsi_selectdev(qualifier, type, remov, manu, model, rev)
|
|||||||
bestmatch = thisentry;
|
bestmatch = thisentry;
|
||||||
}
|
}
|
||||||
if (thisentry->flags & SC_SHOWME)
|
if (thisentry->flags & SC_SHOWME)
|
||||||
printf("\n%s-\n%s-", thisentry->manufacturer, manu);
|
printf("'%s'-'%s'\n", thisentry->manufacturer, manu);
|
||||||
if (strcmp(thisentry->manufacturer, manu)) {
|
if (strcmp(thisentry->manufacturer, manu)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1260,7 +1276,7 @@ scsi_selectdev(qualifier, type, remov, manu, model, rev)
|
|||||||
bestmatch = thisentry;
|
bestmatch = thisentry;
|
||||||
}
|
}
|
||||||
if (thisentry->flags & SC_SHOWME)
|
if (thisentry->flags & SC_SHOWME)
|
||||||
printf("\n%s-\n%s-", thisentry->model, model);
|
printf("'%s'-'%s'\n", thisentry->model, model);
|
||||||
if (strcmp(thisentry->model, model)) {
|
if (strcmp(thisentry->model, model)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1269,7 +1285,7 @@ scsi_selectdev(qualifier, type, remov, manu, model, rev)
|
|||||||
bestmatch = thisentry;
|
bestmatch = thisentry;
|
||||||
}
|
}
|
||||||
if (thisentry->flags & SC_SHOWME)
|
if (thisentry->flags & SC_SHOWME)
|
||||||
printf("\n%s-\n%s-", thisentry->version, rev);
|
printf("'%s'-'%s'\n", thisentry->version, rev);
|
||||||
if (strcmp(thisentry->version, rev)) {
|
if (strcmp(thisentry->version, rev)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user