lkml.org 
[lkml]   [2004]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: hwscan hangs on USB2 disk - SCSI_IOCTL_SEND_COMMAND
Hi,

On Tue, 29 Jun 2004, Kurt Garloff wrote:

> On Tue, Jun 29, 2004 at 11:37:36AM +0200, Bart Hartgers wrote:
> > The problem is that both hwscan and usb-storage get stuck in the 'D"
> > state until I unplug the harddisk.
> >
> > A strace of hwscan shows:
> >
> > 21141 open("/dev/sda", O_RDONLY|O_NONBLOCK) = 3
> > 21141 ioctl(3, 0x301, 0xbfffeba0) = 0
> > 21141 ioctl(3, BLKSSZGET, 0xbfffeb9c) = 0
> > 21141 ioctl(3, 0x80041272, 0xbfffeb90) = 0
> > 21141 ioctl(3, FIBMAP, 0xbfffec40) = 0 <--- hwscan gets stuck here

[...]

> Does it work if you send the INQUIRY with 36 bytes allocation length?
> scsi_cmd_buf[8 + 4] = 0x26;

It's indeed the inquiry size, sticking to the minium 36 bytes helps.
That's fixed in sles9. Update for 9.1 planned.


Steffen
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:04    [W:0.034 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site