Re[2]: vn_fullpath() again

2005-09-06 Thread Igor Shmukler
Perhaps, I do not get it or maybe you are do not getting my point. There are times when resolving would not be possible or a name returned is not necessarily the one used when file was first accessed. We have discussed it here and everyone agreed on that. The hardlinks or files unlinked while vn

Re[2]: vn_fullpath() again

2005-09-06 Thread Robert Watson
On Tue, 6 Sep 2005, Igor Shmukler wrote: You are correct about the Unix file system organization, but does it mean reliable vnode to fullname conversation is not possible? Yes. Get over it. Well, I do not think it is a Yes. I very much think it is a No. You should have continued reading my

Re[2]: vn_fullpath() again

2005-09-06 Thread Igor Shmukler
> > You are correct about the Unix file system organization, but does it > > mean reliable vnode to fullname conversation is not possible? > > Yes. Get over it. Well, I do not think it is a Yes. I very much think it is a No. You should have continued reading my email 'til the middle or even far

Re[2]: vn_fullpath() again

2005-09-05 Thread Igor Shmukler
Robert, You are correct about the Unix file system organization, but does it mean reliable vnode to fullname conversation is not possible? As long as vnode is referenced we should be able to perform the lookup for any file system. Linux does a pretty good job with d_path() and I understand Matt

Re: Re[2]: vn_fullpath()

2005-02-21 Thread Matthew Dillon
:> tree if elements are missing, either directly, or by asking the file :> system using the above call. It's the last step from the file back to a :> parent directory that is the hardest. Alternatively, we can back off :> dropping the intermediate nodes and see to what extent that hurts vs. :> he

Re: Re[2]: vn_fullpath()

2005-02-21 Thread Don Lewis
On 21 Feb, Robert Watson wrote: > > On Mon, 21 Feb 2005, Igor Shmukler wrote: > >> > So the first thing to do is to decied what your requirements are: are you >> > willing to fail in the edge cases like the above? If so, life is a lot >> > easier :-). >> >> I guess I am willing to fail :). Per

Re: Re[2]: vn_fullpath()

2005-02-21 Thread Robert Watson
On Mon, 21 Feb 2005, Igor Shmukler wrote: > > So the first thing to do is to decied what your requirements are: are you > > willing to fail in the edge cases like the above? If so, life is a lot > > easier :-). > > I guess I am willing to fail :). Perhaps in some distant future, we will > look

Re[2]: vn_fullpath()

2005-02-21 Thread Igor Shmukler
Robert and David, Thank you for your help. > It depends a lot on the requirements. There are some nasty edge cases > where the process of determining a name for an object can be quite > expensive. Here's one of them: > > ln /usr/local/etc/apache/httpd.conf /usr/local/etc/apache.old/httpd.con