Re: Common removable media interface?

Jens Axboe
2001-12-18T14:44:07Z

On Tue, Dec 18 2001, Joe Krahn wrote:
> Jens Axboe wrote:
> >
> > On Tue, Dec 18 2001, Joe Krahn wrote:
> > > I think Linux could use a common removable
> > > media interface, sort of like cdrom.c adds
> ...
> >
> > Stuff like this belongs in user space, no need to bloat the kernel with
> > it.
> >
> > --
> > Jens Axboe
> OK, you are right. Bloat is bad. So,
> would you say that new drivers should keep ioctls
> to a bare minimum, much less than cdrom.c, and just
> provide generic access, like SG_IO/HDIO_DRIVE_CMD,
> as a general rule from now on?
> (Sounds OK to me...)

That's exactly what I'm saying, in fact that's the direction that 2.5 is
heading currently (rq->cmd[]). _One_ packet ioctl for your atapi or scsi
removables, done.

--
Jens Axboe