Re: [linux-usb-devel] Mass Storage Initialization

2004-12-21 Thread Daniel Drake
Alan Stern wrote: This sounds different from what Sara was asking (unless I misunderstood the question, which is entirely possible). You're asking about what should be done when there's no media present, not when the media is present but uninitialized. The answer is simple: report a Medium Not

Re: [linux-usb-devel] Mass Storage Initialization

2004-12-20 Thread Alan Stern
On Tue, 21 Dec 2004, Daniel Drake wrote: > Interesting that this came up at this time. I'm developing a usb-storage > subdriver for a compact flash reader and was just about to ask the same > thing, > while trying to implement the ability to plug the device in with no media > without it going

Re: [linux-usb-devel] Mass Storage Initialization

2004-12-20 Thread Daniel Drake
Hi, Alan Stern wrote: On Mon, 20 Dec 2004, Sara Fonseca wrote: 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 (Add

Re: [linux-usb-devel] Mass Storage Initialization

2004-12-20 Thread Alan Stern
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

[linux-usb-devel] Mass Storage Initialization

2004-12-20 Thread Sara Fonseca
Hi, the first time you plug a pen drive, it doenst have any information, so what happens? Should the scsi system start to send write commands with that information? How does the pen drive tells the scsi that it is empty? ( maybe answering the read command with a sense data BLANK CHECK?