Re: Mapping Inode to File

Previous thread: [git pull] m68k updates for 2.6.37 by Geert Uytterhoeven on Friday, October 22, 2010 - 7:41 am. (1 message)

Next thread: [PATCH] perf: fix issue with binaries using 16-bytes buildids by Stephane Eranian on Friday, October 22, 2010 - 8:25 am. (1 message)
From: Bodo Eggert
Date: Friday, October 22, 2010 - 7:51 am

Imagine this:

ln /foo/bar/baz /bar/baz/foo
sleep 2147483647 < /foo/bar/baz &
pivot_root /mnt /mnt/asd
chroot /mnt/asd/foo

What is the name you'd assign to that inode?

--

From: Artur Baruchi
Date: Friday, October 22, 2010 - 9:09 am

Sorry, didnt understand your point.

Could you please clarify?

Note that I need to retrieve the file name in Kernel Space, Im able to
get the inode, but now I need to convert this inode to a name
(something that I could use).

Thanks in advance.

Att.
Artur Baruchi

--

From: Greg KH
Date: Friday, October 22, 2010 - 9:59 am

A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top



How about explaining why you need to get the file name from within the
kernel?  Perhaps there's a better way to do what you are trying to
accomplish.

thanks,

greg k-h
--

Previous thread: [git pull] m68k updates for 2.6.37 by Geert Uytterhoeven on Friday, October 22, 2010 - 7:41 am. (1 message)

Next thread: [PATCH] perf: fix issue with binaries using 16-bytes buildids by Stephane Eranian on Friday, October 22, 2010 - 8:25 am. (1 message)