Pat,

Thanks for the information.

1)
Output of "uname -msr" is:
Linux 2.4.9-e.3 i686

And, output of "uname -a" is:
Linux localhost.localdomain 2.4.9-e.3 #1 Fri May 3 17:02:43 EDT 2002
i686 unknown

2)
This problem is specific to USB floppies. So, I saw it with device name
"/dev/sdb" only.
In case of USB cd, read do not block. So, it was not seen with device
name "/dev/scd0"

3)
May I please know your view, as to whether the device driver for USB
Floppy (either emulated SCSI disc driver or main USB floppy driver) is
supposed to detect this removal of device when it is in read() system
call?

Thanks,
Ganesh

-----Original Message-----
From: Pat LaVarre [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 3:15 AM
To: Borse, Ganesh
Cc: [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: [usb-storage] Request for guidance on a read syscall issue


Ganesh B:

> reads sectors from an USB floppy.
> ... if I remove the cable ... from the drive,
> read system call never returns ...
> After a while ... machine freezes ... reboot ... by power switch ...
> same thing with USB CD drive ... system call ... reported an error.
> O_NONBLOCK ... open(),

Hot unplugging!  Fun, thank you.

What is your `uname -msr`?  And your `uname -a` for that matter?

What are the device names that do and do not work?  Perhaps they are
"/dev/scd0" and "/dev/sda1"?

> driver should ... detect whether the device has been removed

"Should", aye.

Pat LaVarre

P.S. The Subject line of this thread may not be constructed per:

http://www.catb.org/~esr/faqs/smart-questions.html




-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to