Re: CD writing in future Linux (stirring up a hornets' nest)

From: Matthias Andree
Date: Thu Jan 26 2006 - 06:08:20 EST


Joerg Schilling schrieb am 2006-01-26:

> Matthias Andree <matthias.andree@xxxxxx> wrote:
>
> > Joerg Schilling wrote:
> >
> > >> So I'll repeat my question: is there anything that SG_IO to /dev/hd* (via
> > >> ide-cd) cannot do that it can do via /dev/sg*? Device enumeration doesn't count.
> > >
> > > But device enumeration is the central point when implementing -scanbus.
> >
> > Again: Is there anything *besides* (<German>: außer) device enumeration that
> > does not work with the current /dev/hd* SG_IO interface?
>
> This is the main point.

So there is no real reason.

> People like to run cdrecord -scanbus in order to find a list of usable devices.
> People like to see all SCSI devices in a single name space as they are all
> using the same protocol for communication.

I find -scanbus rather annoying, particularly since it doesn't scan all
buses, I need to query cdrecord for the implemented transports, run
-scanbus for each of them again, and everything.

I know what device my writer has, SG_IO is sufficiently capable to write
CDs, is the declared standard for Linux parallel ATA-PI devices and I
want cdrecord to stop pissing at my leg for knowing the device up front.

> A sane way to send SCSI commands to _any_ type of devices would be to have a
> SCSI generic transport layer that is independent from the high-level features
> of the OS and that is independent from whether there is a high-level driver for
> this device at all.

It appears as though the high-level driver gave you exactly that
generic mid-level access. If Linux violates design principles, is none
of your business as long as your application works.

> This is what I designed the scg driver interface for in 1986 and this is what

Yes, 20 years ago. How relevant is this for OSes that needed to be
updated in 2005 to support cdrecord again?

And what has this got to do with libscg's bogus assumptions ("If I
cannot have /dev/hda, I don't need to probe /dev/hdc anyways") after
you've agreed that resmgr and similar to allow console users access to
ONLY the writer were no major security risk?

> Adaptec did in 1988 with ASPI. This is of course also why the SCSI standard
> commitee made a proposal for the CAM SCSI interface.

We don't have ASPI on Linux, you're digressing.

--
Matthias Andree
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/