Hello All,

How can I get disk?s dev link name (which is in the form /dev/dsk/CxTyDz) from 
libdevinfo if I have its corresponding physical path?

Eg: When I do ?ls -l /dev/dsk/c1t0d0s0? the output is

# ls -l /dev/dsk/c1t0d0s0
lrwxrwxrwx   1 root     root          43 Jun  3 16:32 /dev/dsk/c1t0d0s0 -> 
../../devices/pci at 1c,600000/scsi at 2/sd at 0,0:a

Now I want to write a function which would accept  a disk?s physical path 
(/devices/pci at 1c,600000/scsi at 2/sd at 0,0:a ) and find its matching dev 
link node (/dev/dsk/c1t0d0s0)

Thanks in advance,
- Damitri
-- 
This message posted from opensolaris.org

Reply via email to