Re: [osol-code] Using libdevinfo to get disk's dev link name

2009-08-24 Thread damitri
Thanks a lot!! It worked. I was able to get dev link name from the physical paths for all the SD nodes and then filter out the ones that I was interested in. However if I have a large number of luns say more than 5000, then is there more efficient way in libdevinfo to find out dev link names for

Re: [osol-code] Using libdevinfo to get disk's dev link name

2009-08-24 Thread James C. McPherson
On Mon, 24 Aug 2009 04:04:35 -0700 (PDT) damitri wrote: > 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/c1t0d0

[osol-code] Using libdevinfo to get disk's dev link name

2009-08-24 Thread damitri
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