It had to happen. A USB CD device has been found that 'forgets' to mention
that it is a removable device. PR #6513.

Therefore tweak the cd recognition pattern to accept T_FIXED cdrom and
worm devices.

Can anybody think of any reason to not do this? Submitter should be
testing this as I write to make sure it fixes his issue.

.... Ken

Index: cd.c
===================================================================
RCS file: /cvs/src/sys/scsi/cd.c,v
retrieving revision 1.196
diff -u -p -r1.196 cd.c
--- cd.c        23 Sep 2010 13:11:38 -0000      1.196
+++ cd.c        22 Nov 2010 01:10:11 -0000
@@ -161,7 +161,11 @@ struct cfdriver cd_cd = {
 const struct scsi_inquiry_pattern cd_patterns[] = {
        {T_CDROM, T_REMOV,
         "",         "",                 ""},
+       {T_CDROM, T_FIXED,
+        "",         "",                 ""},
        {T_WORM, T_REMOV,
+        "",         "",                 ""},
+       {T_WORM, T_FIXED,
         "",         "",                 ""},
        {T_DIRECT, T_REMOV,
         "NEC                 CD-ROM DRIVE:260", "", ""},

Reply via email to