Operating System - HP-UX
1752782 Members
6115 Online
108789 Solutions
New Discussion юеВ

how to get FSname from a FSID

 
Sockeel
Occasional Advisor

how to get FSname from a FSID

pstat_getfile function return FilesystemID.
From this ID, how can I get the filesystem mounted name ?

Thanks for answer
3 REPLIES 3
Carsten Krege
Honored Contributor

Re: how to get FSname from a FSID

I don't think this will be easily possible since the the fsid is most likely the vnode number of the filesystem (and not the inode or so).

The best what you can do is to use the public domain tool lsof (list open files). It is available on http://gatekeep.cs.utah.edu (or http://hpux.asknet.de/ as the first one seems to have problems recently).

Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
Andreas Voss
Honored Contributor

Re: how to get FSname from a FSID

Hi,

i've played around with the example code from 'man pstat' and found a solution.
See attachment.

Regards
Andreas Voss
Honored Contributor

Re: how to get FSname from a FSID

Sorry forgot the attachment.