[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AANLkTikebrSiW0unB8xy8UU1KNGaOZBu_HT=j9wQQeY5@mail.gmail.com>
Date: Fri, 22 Oct 2010 14:09:44 -0200
From: Artur Baruchi <mail.baruchi@...il.com>
To: 7eggert@....de
Cc: linux-kernel@...r.kernel.org
Subject: Re: Mapping Inode to File
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@....de> wrote:
> Artur Baruchi <mail.baruchi@...il.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?
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists