Henning Meier-Geinitz wrote: > I have no idea how to test if the device is a SCSI device without > sending data to it. Maybe we can add some magic to look at the real > device name if /dev/scanner is used but ad this can something like > /dev/sga, /dev/sg1, /dev/uk0, /dev/ss0 and many many more it's not > that easy. And nobody prevents the user to create > /dev/myownscsiscanner with the correct major/minor numbers. > > Any ideas? >
I think we could and should create a function sanei_identify_device(char *device_file) that has some #IFDEF _LINUX_ test for major/minor number for SCSI/USB/PARALLEL/... #... Bye Oliver -- Homepage: http://www.rauch-domain.de sane-umax: http://www.rauch-domain.de/sane-umax xsane: http://www.xsane.org E-Mail: mailto:[email protected]
