Re: Inode - Kernel Mode

From: Theodore Tso
Date: Tue Jan 18 2011 - 07:48:00 EST



On Jan 18, 2011, at 5:28 AM, Artur Baruchi wrote:

> Hi Guys.
>
> I'm able to get the inode number for a given file. Is there a way to
> get the file size, since I already have the inode ?

Not in a portable / file system independent way.

In Linux, file systems are not required to use inode numbers at all.

See: http://www.openafs.org/pipermail/openafs-devel/2008-February/015805.html

-- Ted

--
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/