Messages in this thread |  | | Date | Tue, 15 May 2001 05:49:08 -0400 (EDT) | From | Alexander Viro <> | Subject | Re: LANANA: To Pending Device Number Registrants |
| |
On Tue, 15 May 2001, Alan Cox wrote:
> to > > /* Use scsi if possible [scsi, ide-scsi, usb-scsi, ...] */ > if(HAS_FEATURE_SET(fd, "scsi-tape")) > ... > else if(HAS_FEATURE_SET(fd, "floppy-tape")) > ..
Alan, if we are doing that we might as well use saner interface than ioctl(2). In case you've mentioned we don't want "make device SYS$FOO17 do special action OP$LOUD$BARF4269". We want "make device rewind the tape". Or "tell us geometry". Or "eject the media". Application doesn't _care_ whether it is ejecting floppy on Sun or IDE CD, or SCSI CD or ZIP disk sitting on parallel port. The fact that currently it has to know is a Bad Thing(tm).
At the very least we need ioctls sorted by function, not by device.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|  |