On Sunday 13 May 2007 15:59 Mohsen Pahlevanzadeh wrote: > Dear all, > I need to a code piece that it gets serial number of hdd. > Please help me....
For an ATA disk you can use the IOCATAGPARM ioctl to get the information. See the attached C source for example. Be sure to have a look at /usr/src/sys/sys/ata.h for other relevant fields and sizes. Cheers, Vik
_______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"