lkml.org 
[lkml]   [2010]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Mapping Inode to File
Date
Artur Baruchi <mail.baruchi@gmail.com> wrote:

> Hi Guys.
>
> Is there a way to map an Inode number to a File (file path and name)
> in a kernel module ?

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?



\
 
 \ /
  Last update: 2010-10-22 16:55    [W:0.052 / U:0.180 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site