Re: Mapping Inode to File

From: Bodo Eggert
Date: Fri Oct 22 2010 - 10:52:08 EST


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/