lkml.org 
[lkml]   [1999]   [Jan]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Open by inode? (was Re: knfsd)
Hi Nick.

>> ...(along with a way to find the inode number of an unlinked
> but not yet deleted file through /proc).

> 2.2.0-pre4# ls -il /proc/[0-9]*/fd/* | grep ' (deleted)$'

Simpler still...

Q> ls -il /proc/*/fd/* | grep '(deleted)'

Only process directories have an fd subdirectory, and even if they
didn't, grep would get rid of the rest...

Best wishes from Riley.

---
* ftp://ps.cus.umist.ac.uk/pub/rhw/Linux
* http://ps.cus.umist.ac.uk/~rhw/kernel.versions.html


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.050 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site