On Mon, 20 Dec 2004, Sara Fonseca wrote: > Hi, > > the first time you plug a pen drive, it doenst have any information, > so what happens?
That's not true at all. The drive is full of information. It may be all 0's or all garbage, but there's _something_. Unless I'm mistaken, and the data on the pen drive isn't accessible until the drive has been initialized somehow (like formatting a disk)? If that's the case, until the drive has been initialized it should respond to read and write commands with failures. > Should the scsi system start to send write commands > with that information? That's up to the person using the pen drive. If he tells the computer to write to the pen drive, then the SCSI system should start to send write commands. It's like a floppy disk -- what do you get when you start using a brand new floppy disk? What do you get before you format the disk, and what do you get after you format it? > How does the pen drive tells the scsi that it > is empty? ( maybe answering the read command with a sense data BLANK > CHECK? If you have to respond with a failure, you can use Sense Key = 0x03 (Medium error) with ASC = 0x12 or 0x13 (Address mark not found for ID or Data field). But if there's data you can read then you should use it. Alan Stern ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
