On 26/05/11 01:03 PM, Tejinder wrote:
We have to pass third parameter of kstat_lookup() as the disk name we
want to get information for. This can be either passed from command
line or hard code in app. But, AS I have already explained that disk
names are not fixed they are depend on the way the HDD are configured
(SCSI: sd0, sd1 | IDE: dad0, dad1, etc). So, rather than passing this
from command line or hard code, there should be another API that will
be called before kstat_lookup() and return real disk names using which
real HDD Serial number can be fetched.

Does this make sense ?

No, it does not make sense. Both Dan and I have asked you

What _larger_ problem are you trying to solve?

Without that knowledge, there is no point in asking us for
help with random titbits of info which you think are relevant
to disclose.


James C. McPherson
--
Oracle
http://www.jmcp.homeunix.com/blog
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to