![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Inode number | compbug | Filesystems, Disks and Memory | 1 | 06-18-2006 08:06 PM |
| how to find serial number | chomca | AIX | 3 | 05-26-2006 07:00 AM |
| How to find number of processes ? | ArabOracle.com | SUN Solaris | 2 | 02-14-2006 12:29 AM |
| Directory Inode Number Not Unique | nj302 | UNIX for Dummies Questions & Answers | 9 | 05-22-2005 08:34 AM |
| find without pathname | MBGPS | UNIX for Dummies Questions & Answers | 3 | 06-27-2002 10:03 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi all
when I execute pmap command on one of my daemon process, I am able to see the following output. Address Kbytes RSS Anon Locked Mode Mapped File 00010000 40 40 - - r-x-- irs026bmd 00028000 56 56 16 - rwx-- irs026bmd 00036000 280 264 144 - rwx-- [ heap ] FBFFA000 8 8 8 - rwx-R [ stack tid=2 ] FC000000 42800 42792 - - r--s- dev:85,60 ino:8464571 FEC30000 64 64 64 - rw--- [ anon ] FEC50000 64 64 64 - rw--- [ anon ] . . . when I try to locate the file pointed by dev:85,60 ino:8464571 by executing the command find / -xdev -inum 8464571, I coundn't find the pathname of the file. Could anybody help me to find the filename from the inode number Thx in advance |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
-xdev prevents descent into other filesystems. Normally lots of filesystems can be mounted off /. I think that is your problem. What file system is mounted on 85, 40?
|
|
#3
|
||||
|
||||
|
Another problem is that there can be any number of pathnames, including zero pathnames. We get newbie admins all the time who encounter a filled filesystem, locate a large file, and simply run "rm large_file" without checking to see if the file is open. And then they wonder why the space was not freed.
But this situation could be intentional too. Lots of programs open a temporary file, unlink it, and then use it. This results in very good security since no other program can access that file. And it arranges for the file to automatically disappear when the program exits. Also be aware that there can be many pathnames as well. Your question seems to imply an assumption of exactly one pathname per file. Filesystems don't work that way in unix. |
|
#4
|
|||
|
|||
|
list path of a directory
thanks
helped me too |
|||
| Google The UNIX and Linux Forums |