|
Home > Archive > Unix Programming > March 2006 > Is there any possiblity to detect the tape type in C program?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Is there any possiblity to detect the tape type in C program?
|
|
| biggeorge 2006-03-21, 3:17 am |
| Hi guys,
Do you know is there any possiblity to detect the tape type
in C program?I know how to detect the tape drive type,but I don't know
how to detect the tape type.Do you have any idea of doing this?
Thanks a lot
George
| |
| Simon Elliott 2006-03-21, 5:56 pm |
| On 20/03/2006, biggeorge wrote:
> Do you know is there any possiblity to detect the tape type
> in C program?I know how to detect the tape drive type,but I don't know
> how to detect the tape type.Do you have any idea of doing this?
If it's a SCSI tape drive, you can issue a mode sense (0x1A) command
which will tell you if the media is write protected, and whether the
medIa is reel TO reel (800/1600/6250bpi), QIC (120,150,320), DAT or
EXABYTE. (In theory. I've noticed that many SCSI tape drives are a bit
non standard.)
But issuing SCSI commands from a unix app seems very system specific.
--
Simon Elliott http://www.ctsn.co.uk
|
|
|
|
|