Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   how to get a serial number of a tape drive given a device file (http://www.linux-archive.org/ubuntu-user/54448-how-get-serial-number-tape-drive-given-device-file.html)

"Shrikar archak" 02-13-2008 11:46 AM

how to get a serial number of a tape drive given a device file
 
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

--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users


All times are GMT. The time now is 01:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.