Finding out a filename from the vnode

Finding out a filename from the vnode

Post by Phillip » Tue, 21 Feb 1995 11:24:31



I am trying to find out the pathname of a disk file from its vnode in the
kernel's memory (What I have done is to go through uf_ofile of the process's
user area which then points to the file structure).
I understand that v_data points to "private data" which is the inode structure
if the file is a disk file. Can someone tell me how I can find out the file's
name (the inode number and filesystem would be good enough)? How can I tell
that the vnode is referencing a disk file?

Thanks for any help
--
______________________________________________________________________________

Level 6 Building B              | PH: 61 2 691-4099
Qantas Centre                   |

 
 
 

Finding out a filename from the vnode

Post by Bernd Kun » Wed, 22 Feb 1995 19:22:27


: I am trying to find out the pathname of a disk file from its vnode in the
: kernel's memory (What I have done is to go through uf_ofile of the process's
: user area which then points to the file structure).
: I understand that v_data points to "private data" which is the inode structure
: if the file is a disk file. Can someone tell me how I can find out the file's
: name (the inode number and filesystem would be good enough)? How can I tell
: that the vnode is referencing a disk file?

: Thanks for any help
: --
: ______________________________________________________________________________

: Level 6 Building B            | PH: 61 2 691-4099
: Qantas Centre                 |

There is a tool called lsof (list of open files) out there. Look at
the code, it is very comprehensive. I don't know it's home ftp server,
we have it at ftp.novell.de:/pub/unixware/usle/sources.
--
---------------------------------------------------------------
Bernd Kunze                       Phone    +49 211 5632 604
Novell ESC Duesseldorf, Germany   Fax      +49 211 5632 772
                                  CIS      75600,2565

Hardware, n: The parts of a computer system that can be kicked.
---------------------------------------------------------------

 
 
 

1. Answer: Vnodes + Question: jfs,vfs ( was: Vnodes )

Try:
        ftp.sage.usenix.org:/pub/USENIX/summer86/vnode.ps.Z
Which is a copy of:
 S.R.Kleinman (SMI), Vnodes: An Architecture for Multiple File System Types
        in Sun UNIX
     ( also, in the summer85 directory is another Sun paper by
                Russell Sandberg on NFS implementation. )

*NOW*!  my turn:

Does anybody know of any papers discussing IBM AIX's "jfs" and "vfs" ?
( journaling filesystem & virtual filesystem )

===============================================================================
 Steven D. Majewski                     University of Virginia

 Voice: (804)-982-0831                  1300 Jefferson Park Avenue
 FAX:   (804)-982-1616                  Charlottesville, VA 22908
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Former UVA Department of Physiology, now Department of Molecular Physiology
and Biological Physics! [ Still the same spacious offices in Jordan Hall
- only the letterhead has changed! ]

2. setting reply address for sendmail

3. find out vnode from fd with mdb?

4. select_table and wait.h

5. How to find out application that send outs packets on certain port

6. NFS

7. file of filenames, trying to execute %> cat filename

8. NIS+ user add problem in Sosltice.

9. How to change Windows-compliant filenames to Unix filenames

10. Change Upper case filename to lower case filename

11. Capturing an a filename that contains the month/date in filename ie fileMMDD

12. replace filename with string in way that can fool apps that require a filename

13. a file of filenames compared to another file of filenames