Adding new quirks

Dmitry Remesov dmitry at remesov.ru
Wed Mar 31 21:06:10 PST 2004


I ask you to add a new quirk for a noname USB flash drive. It freezes 
randomly with complains like "Synchronize cache failed"

# camcontrol inquiry da0
pass0: < USB BAR 1.89> Removable Direct Access SCSI-2 device
pass0: Serial Number
pass0: 1.000MB/s transfers

There is no such quirk in DA_OLD_QUIRKS
Here is the patch which seems to make it work

--- sys/cam/scsi/scsi_da.c.orig	Mon Mar 29 14:32:54 2004
+++ sys/cam/scsi/scsi_da.c	Mon Mar 29 14:32:01 2004
@@ -238,6 +238,13 @@
  		{T_DIRECT, SIP_MEDIA_FIXED, "COMPAQ", "RAID*", "*"},
  		/*quirks*/ DA_Q_NO_SYNC_CACHE
  	},
+	{
+		/*
+		 * USB BAR aka Pen Drives
+		 */
+		{T_DIRECT, SIP_MEDIA_REMOVABLE, "*", "USB BAR*", "*"},
+		/*quirks*/ DA_Q_NO_SYNC_CACHE
+ 	},
  #ifdef DA_OLD_QUIRKS
  	/* USB floppy devices supported by umass(4) */
  	{


More information about the freebsd-scsi mailing list