* Common removable media interface?
@ 2001-12-18 13:17 Joe Krahn
2001-12-18 13:20 ` Jens Axboe
0 siblings, 1 reply; 5+ messages in thread
From: Joe Krahn @ 2001-12-18 13:17 UTC (permalink / raw)
To: linux-kernel
I think Linux could use a common removable
media interface, sort of like cdrom.c adds
a common interface to all CD/DVD. But, cdrom.c
does such a good job, it almost seems like the
thing to do is to just add acces to other
devices to cdrom.c, and maybe rename it to
media.c. Other media includes IDE floppies,
regular floppies (if they live much longer),
solid state media. Maybe even include some
access to all media (not to replace the real
drivers) like tapes, non-removable disks, etc.
Is anyone working on or thinking about
such a thing?
Do other people think this would be useful?
Would it be 'bad' to just add IDE floppy
access (not well developed) to cdrom.c,
(which is already mislabelled now that it
handles DVD)?
Joe Krahn
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Common removable media interface?
2001-12-18 13:17 Common removable media interface? Joe Krahn
@ 2001-12-18 13:20 ` Jens Axboe
2001-12-18 13:42 ` Joe Krahn
0 siblings, 1 reply; 5+ messages in thread
From: Jens Axboe @ 2001-12-18 13:20 UTC (permalink / raw)
To: Joe Krahn; +Cc: linux-kernel
On Tue, Dec 18 2001, Joe Krahn wrote:
> I think Linux could use a common removable
> media interface, sort of like cdrom.c adds
> a common interface to all CD/DVD. But, cdrom.c
> does such a good job, it almost seems like the
> thing to do is to just add acces to other
> devices to cdrom.c, and maybe rename it to
> media.c. Other media includes IDE floppies,
> regular floppies (if they live much longer),
> solid state media. Maybe even include some
> access to all media (not to replace the real
> drivers) like tapes, non-removable disks, etc.
>
> Is anyone working on or thinking about
> such a thing?
> Do other people think this would be useful?
> Would it be 'bad' to just add IDE floppy
> access (not well developed) to cdrom.c,
> (which is already mislabelled now that it
> handles DVD)?
Stuff like this belongs in user space, no need to bloat the kernel with
it.
--
Jens Axboe
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Common removable media interface?
2001-12-18 13:20 ` Jens Axboe
@ 2001-12-18 13:42 ` Joe Krahn
2001-12-18 14:11 ` Alan Cox
2001-12-18 14:43 ` Jens Axboe
0 siblings, 2 replies; 5+ messages in thread
From: Joe Krahn @ 2001-12-18 13:42 UTC (permalink / raw)
To: Jens Axboe; +Cc: linux-kernel
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...)
Joe Krahn
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Common removable media interface?
2001-12-18 13:42 ` Joe Krahn
@ 2001-12-18 14:11 ` Alan Cox
2001-12-18 14:43 ` Jens Axboe
1 sibling, 0 replies; 5+ messages in thread
From: Alan Cox @ 2001-12-18 14:11 UTC (permalink / raw)
To: Joe Krahn; +Cc: Jens Axboe, linux-kernel
> 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...)
Even better would be to move the from the existing drivers into a kernel
compat module you can load for older apps/tools. Our module tools and kernel
code already allow that module to be loaded on demand
Alan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Common removable media interface?
2001-12-18 13:42 ` Joe Krahn
2001-12-18 14:11 ` Alan Cox
@ 2001-12-18 14:43 ` Jens Axboe
1 sibling, 0 replies; 5+ messages in thread
From: Jens Axboe @ 2001-12-18 14:43 UTC (permalink / raw)
To: Joe Krahn; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-12-18 15:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-18 13:17 Common removable media interface? Joe Krahn
2001-12-18 13:20 ` Jens Axboe
2001-12-18 13:42 ` Joe Krahn
2001-12-18 14:11 ` Alan Cox
2001-12-18 14:43 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox