Re: Getting filename from descriptor or vnode struct

2001-08-17 Thread Terry Lambert
Julian Elischer wrote: > > you are going to have to examine the name cache and find the inode of the > directories in the full path. Most open directories will have their full > path in the caches.. For the problem he is trying to solve, he should: 1) Precompute the path to the configurati

Re: Getting filename from descriptor or vnode struct

2001-08-17 Thread Julian Elischer
you are going to have to examine the name cache and find the inode of the directories in the full path. Most open directories will have their full path in the caches.. On Fri, 17 Aug 2001, Eugene L. Vorokov wrote: > > Hi hackers, > > > > I'm confronted to a problem when I try to hack getdiren

Re: Getting filename from descriptor or vnode struct

2001-08-16 Thread Eugene L. Vorokov
> Hi hackers, > > I'm confronted to a problem when I try to hack getdirentries(2) in a kld > module : > > To summarize, getdirentries() filled in a buffer a series of dirent struct, > and the 'd_name' field represents the filename (without the full path). I > must recover the full path because

Re: Getting filename from descriptor or vnode struct

2001-08-16 Thread Alfred Perlstein
* Sansonetti Laurent <[EMAIL PROTECTED]> [010816 12:22] wrote: > Hi hackers, > > I'm confronted to a problem when I try to hack getdirentries(2) in a kld > module : > > To summarize, getdirentries() filled in a buffer a series of dirent struct, > and the 'd_name' field represents the filename (w

Getting filename from descriptor or vnode struct

2001-08-16 Thread Sansonetti Laurent
Hi hackers, I'm confronted to a problem when I try to hack getdirentries(2) in a kld module : To summarize, getdirentries() filled in a buffer a series of dirent struct, and the 'd_name' field represents the filename (without the full path). I must recover the full path because I've on disk a l