f



Getting name of device which is bind to raw device if i have raw device name

Hi
Can any one tell  me 
Ihave a raw device is bind to a logical volume 
How  to get the logical volume name from the name of the raw device

Thanks ,
Sachin
0
sachindurge
4/6/2004 6:58:41 AM
comp.linux.development.system 5436 articles. 0 followers. zixenus (12) is leader. Post Follow

1 Replies
625 Views

Similar Articles

[PageSpeed] 6

sachin wrote:
> 
> Hi
> Can any one tell  me
> Ihave a raw device is bind to a logical volume
> How  to get the logical volume name from the name of the raw device

That is imposible.

You can get the device number by using the RAW_GETBIND
ioctl (like raw -q does). But there is no way to get
the device name from the device number (other than
searching through all of /dev and hoping to find the
right node).

-- 
Kasper Dupont -- der bruger for meget tid paa usenet.
For sending spam use mailto:aaarep@daimi.au.dk
/* Would you like fries with that? */
0
Kasper
4/6/2004 5:49:53 PM
Reply: