From owner-freebsd-current@FreeBSD.ORG Sat Jun 23 10:57:26 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5D481106564A; Sat, 23 Jun 2012 10:57:26 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.c2i.net [212.247.154.194]) by mx1.freebsd.org (Postfix) with ESMTP id 7C4608FC15; Sat, 23 Jun 2012 10:57:25 +0000 (UTC) X-T2-Spam-Status: No, hits=-1.0 required=5.0 tests=ALL_TRUSTED Received: from [176.74.212.201] (account mc467741@c2i.net HELO laptop015.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 289511158; Sat, 23 Jun 2012 12:57:18 +0200 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sat, 23 Jun 2012 12:56:59 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <4FE40A42.6010503@zedat.fu-berlin.de> <201206220822.19486.hselasky@c2i.net> In-Reply-To: X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201206231256.59343.hselasky@c2i.net> Cc: Adrian Chadd , "O. Hartmann" , freebsd-questions@freebsd.org Subject: Re: USB system: FreeBSD 9-STABLE and 10-CURRENT do not recognize 64GB USB drive while Linux and Windows do X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2012 10:57:26 -0000 On Saturday 23 June 2012 11:52:53 Adrian Chadd wrote: > On 21 June 2012 23:22, Hans Petter Selasky wrote: > > usbconfig -d 7.6 add_quirk UQ_MSC_NO_INQUIRY > >=20 > > Then re-plug it. > >=20 > > I'm sorry to say a lot of USB flash sticks out there are broken and only > > tested with the timing of MS Windows. Part of the problem is that it is > > difficult to autodetect these issues, because once you trigger the non- > > supported SCSI command, then the flash key stops working like you > > experience. > >=20 > > I would be more than glad to open up an office to certify USB devices f= or > > use with FreeBSD :-) >=20 > Question - if that's the case, then why are we even doing that by default? >=20 Hi, Do you want a blacklist or do you want a whitelist? Please explain the pros= =20 and cons. I believe that those that program wrong shall be held responsible for that = and=20 given a chance to clean up, and not the opposite way around. As a senior=20 programmer I can only testify that many people care equally little about wh= at=20 their computer is made of and what they eat. We probably need a control bod= y=20 to certify USB devices that is cheaper than USB.org, simply put. I think it is a bad idea to cripple all USB SCSI devices because what looks= =20 like the majority do not obey the rules of the specifications they are=20 supposed to support. Else we need to make a new USB SCSI class for devices= =20 that are certified and one for devices that are not certified. Non-certifie= d=20 devices can have a limited SCSI command set, which should be implemented in= =20 the CAM layer like some kind of flag. If we could join heads on the Linux guys on this, we might be able to do=20 something! Like having a pop-up every time a USB device fails certain tests. =46rom the history we can predict what people will do when they do not know= what=20 they are doing. They will nail the guy doing it right and let the guy doing= it=20 wrong go free. And it seems like this happened before too ;-) I have a personal FreeBSD-native USB test utilty that runs mass storage=20 devices through a series of tests. Most USB mass storage devices I've teste= d=20 so far have obvious bugs, which either means their firmware can be hacked o= r=20 made to crash. Also worth noting, that many USB device are not certified at all. It might = be=20 clever to look for the USB logo from USB.org next time you want to transfer= X=20 GB of personal data from location X to Y. =2D-HPS