Quote:
Originally Posted by
Perderabo
The mountpoint is where the filesystem gets mounted. Run a command like "df -k" which should give you a list of filesystems. Each line will have a directory which is the mountpoint. If the inode numbers do not match, you have the wrong files. Use that find command to locate the file which matches a particular inode number.
You don't say what os you are using. My fuser does not have -V and it does not display inode numbers. To get more info on your fuser, use the command "man fuser" and read the man page. My fuser man page says stuff like "c file is its current directory". The output you show has c on the lines, it looks like you may be dealing with current directories. But I would expect pid's rather that inode numbers. Your fuser is not like mine and you have provided so few details that I really cannot help you here.
The current directory is controlled by the cd command in the shell. If I type "cd /local/local/bin", then /usr/local/bin becomes my current directory and fuser would show the inode of /usr/local/bin in the output.
Hey,
I am using AIX5.2.
And in "man fuser", it has -V and -c options.
fuser [ -c | -d | -f ] [ -k ] [ -u ] [ -x ] [ -V ]File ...
The fuser command lists the process numbers of local processes that use the local or remote files specified by the File parameter. For block special
devices, the command lists the processes that use any file on that device.
Each process number is followed by a letter indicating how the process uses the file:
c Uses the file as the current directory.
e Uses the file as a program's executable object.
r Uses the file as the root directory.
s Uses the file as a shared library (or other loadable object).
Flags
-V Provides verbose output.
-c Reports on any open files in the file system containing File.
-u Provides the login name for local processes in parentheses after the process number.
-f Reports on open instances of File only.
-x Used in conjunction with -c or -f, reports on executable and loadable objects in addition to the standard fuser output.
As I have said, i am using command (given below)
fuser -uV /clocal/mqbrkrs/user/mqsiadm/sanjay
And it shows the o/p (given below)
/clocal/mqbrkrs/user/mqsiadm/sanjay:
inode
569506c(t9154r0)
inode 577710c(mqsiadm)
inode 1044732c(mqsiadm)
inode 1155126c(mqsiadm)
Now, for example
569506 is the process no. that uses a file in the current directory (
c). Now how would I map the name of the file in the current directory, which is used by the process whose process id is 569506 ??
In simple terms I want the name of the file which is being used !!
Hope you get this !!
Can we map process no. in "ps" table ?? From there i would get the name of the file or not corrosponding to that process no. which i have got from fuser command??
Any light on this ???