Re: Mapping Inode to File
From: Artur Baruchi
Date: Fri Oct 22 2010 - 12:09:49 EST
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
On Fri, Oct 22, 2010 at 12:51 PM, Bodo Eggert <7eggert@xxxxxx> wrote:
> Artur Baruchi <mail.baruchi@xxxxxxxxx> 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?
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/