- 论坛徽章:
- 0
|
What operating system will your program be running on?
What device driver will be used as your changer driver?
To manage a tape library, the program needs to call open( ), ioctl( ), close( ) basically. The open( ) and close( ) are mostly same on all of operating system. The ioctl calls are very difference deponded on which device driver using. For example, you call SG_IO( ) to send the SCSI command to the library running with Linux generic driver -- sg on Linux. On Solaris, you can use USCSI( ) to issue SCSI command running with Solaris native passthru driver -- sgen. On HP-UX, you can use HP-UX native changer driver -- schgr or passthru driver -- spt to call its ioctls. On AIX, you have to call HBA API to send the commands.
If you want to use IBM changer drivers to handle IBM tape libraries, IBM provides a whole set of ioctl calls on AIX, Linux, Solaris, Windows and HP-UX.
If you are working for third party of changer driver like EMC Lus driver for IBM tape libraries, you need to contact with the third party vendor. |
|