Messages in this thread | | | Date | Sat, 20 Feb 1999 03:25:05 -0500 (EST) | From | Alexander Viro <> | Subject | Re: Directory Entry for File |
| |
On Sat, 20 Feb 1999, Mike Kennedy wrote:
> > Ok... let me re phrase. I'm talking about kernel space. I need to, given > an inode for a file that is being read, for example, find the > corresponding filename string that is contained in the directory entry.
Look at sys_getpwd() and do it for all dentries over your inode (cyclic list I've mentioned). Why not do it on open()? There you have the name for free and to read stuff one has to open the file.
- 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/
| |