Re: 2.6.8.1-mm3

James Bottomley
2004-08-21T19:25:27Z

On Sat, 2004-08-21 at 15:14, Patrick Mansfield wrote:
> Looks like it will be hit for any scsi removable media, the removable
> media check in sd.c sd_media_changed() uses SCSI_IOCTL_TEST_UNIT_READY.

Yes, I'm in two minds about this one.

Either we could provide a helper routine to do it and convert all the
internal uses over, or we could define a new ioctl that is correctly
unique, something like

#define SCSI_TEST_UNIT_READY _IOR('S', 8, int)
or perhaps just 0x5388

and convert the internal users over to it.

Opinions?

James