Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Q inode num to pathname



On Fri, Jul 02, 2010 at 09:41:45PM +0930, Brett Lymn wrote:
> On Fri, Jul 02, 2010 at 10:21:45AM +0900, Toru Nishimura wrote:
> > Folks,
> > 
> > I would like to have idea(s) to convert inum to pathname with
> > the least amount of (shell) programming efforts. Solutions?
> > 
> 
> find /store -inum 10087535 -print
> 
> and wait....

find /store -inum 10087535 -print -exit 0

and wait a little less...

Or maybe, if something has that inode open:
  lsof -Fin | grep -A 1 '^10087535$' | grep '^n' | sed -e's/^n//'

eric


Home | Main Index | Thread Index | Old Index