Not quite. The unit could be removed while mounted. The SCSI layer doesn't know that the media might have been changed. So, while START_UNIT is the SCSI layer's way of probing for media change, it's not the only way that such a thing can be detected.
Matt On Sun, Dec 30, 2001 at 11:16:32AM +0000, Alan Cox wrote: > > Some code would be needed to notice if this is the first media-access > > command (just defining that is a bit fuzzy) and failing the command with > > sense data that suggests a media-change. > > > > Ugly, to say the least. > > You only need to check START_UNIT. When the scsi layer wants to check a > volume status it will send a START_UNIT command. You need to fake back > > UNIT_ATTENTION - media change > NOT_READY - empty > > as appropriate -- Matthew Dharm Home: [EMAIL PROTECTED] Maintainer, Linux USB Mass Storage Driver Okay, this isn't funny anymore! Let me down! I'll tell Bill on you!! -- Microsoft Salesman User Friendly, 4/1/1998
msg03598/pgp00000.pgp
Description: PGP signature