Re: how can i get hold of a file inode ?

From: BenHanokh Gabriel (gabriel@SANgate.com)
Date: Tue Jul 25 2000 - 06:58:56 EST


Rogier Wolff wrote:

> Insufficient info.
> Roger.
>

try 2:
i need to find what physical blocks a file occuiped on disk.
so i have to find the file's inode and pass it as an argument to the vfs method
- bmap.
only one problem - how can i get the file in-core inode ?

hope this is clearer
/gabriel

>
> BenHanokh Gabriel wrote:
> > hi
> >
> > how can i get pointer to a file inode ?
> >
> > should i use namei or that it is better to have a user-space app opening
> > the file and passing me the fd( using ioctl ) ?
> >
> > i saw that kernel code like sys_read is calling fget with the user space
> > fd, but i couldn't link with fget
> >

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 31 2000 - 21:00:18 EST