Subject: kern/23006: DiskOnKey USB flash "disk" doesn't work under -current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <smb@research.att.com>
List: netbsd-bugs
Date: 09/29/2003 17:15:09
>Number:         23006
>Category:       kern
>Synopsis:       CDiskOnKey USB flash "disk" doesn't work under -current
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 29 21:16:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Steven M. Bellovin
>Release:        NetBSD 1.6ZC
>Organization:
AT&T Labs Research
>Environment:
	
	
System: NetBSD challenger.research.att.com 1.6ZC NetBSD 1.6ZC (CHALLENGER) #0: Wed Sep 24 20:58:42 EDT 2003 smb@challenger.research.att.com:/usr/obj/sys/arch/i386/compile/CHALLENGER i386
Architecture: i386
Machine: i386
>Description:
	When I use the device on 1.6.1 (and under previous incarnations of 
	-current, I believe), it would say 

	umass0 at uhub0 port 1 configuration 1 interface 0
	umass0: M-Systems DiskOnKey, rev 1.00/2.00, addr 2
	umass0: using SCSI over Bulk-Only
	scsibus0 at umass0: 2 targets, 1 luns per target
	scsibus0: waiting 2 seconds for devices to settle...
	sd0 at scsibus0 target 1 lun 0: <M-Sys, DiskOnKey, 2.01> SCSI0 0/direct removable
	sd0: 31824 KB, 31 cyl, 64 head, 32 sec, 512 bytes/sect x 63648 sectors

	Under -current, the "waiting 2 seconds for devices to settle..." line 
	doesn't come out, and the geometry line is very often delayed -- 
	once by 3 minutes.  I hadn't realized that that was going to 
	happen, so I tried running 'disklabel' after seeing the 'sd0 at
	scsibus0'.  That command hung, but I was able to halt the system.
	But even waiting for that command before running 'disklabel' didn't 
	help -- that command still hangs, and SIGINT doesn't abort the command.
	For that matter, 'kill -9' doesn't abort it -- it's in state D, wchan 
	'xscmd'.

>How-To-Repeat:
	Insert dongle.  Wait...
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: