how to get a serial number of a tape drive given a device file

Shrikar archak shrikar84 at gmail.com
Wed Feb 13 12:46:36 UTC 2008


Hi Geeks,

I want a small C program which would give the serial number of a tape or a
library given the device files.
Like /dev/sg*..
The program should take the /dev/sg* as input and give the serial number of
that particular tape drive or library.
I am not sure of how to use the ioctl call to get that one done.

Thanks,
Shrikar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080213/1b3a3c95/attachment.html>


More information about the ubuntu-users mailing list