-ENOT_SUPPORTED_BY_THIS_DRIVE ?

Gerd Knorr (kraxel@goldbach.isdn.cs.tu-berlin.de)
Tue, 23 Sep 1997 15:54:12 +0200 (MEST)


Hi !

While hacking the scsi cdrom driver and teaching him to return useful
errno codes on failed ioctls I came across the following problem:

I hav'nt found a error code to tell a program that the drive does not
support some action. Well, there is that generic EINVAL, but I'd like to
be a bit more specific. A audio ioctl for example might fail for two
reasons:

a) there are invalid parameters (one tried to start audio playback
behind the last track or something). EINVAL is ok for this one
I think.
b) The drives does'nt support the scsi-2 audio commands at all (some
old nec drives). For this one I'd like to return something else than
just EINVAL. Is there some error code for this kid of errors?

Gerd