Posted with author's authorization
---------- Forwarded message ----------
Date: Mon, 6 Dec 1999 17:07:27 +0100 (MET)
From: Marc SCHAEFER <[EMAIL PROTECTED]>
To: Serge E. Hallyn <[EMAIL PROTECTED]>
Subject: Re: d_path or way to get full pathname
On Mon, 6 Dec 1999, Serge E. Hallyn wrote:
> Just a note: It looks like you're not following mount points. I'm assuming
> this must be what you want since I'm sure you would have noticed :)
By this, do you mean that if a file is under /usr/truc/abcd/temp/file, and
/usr/truc is really a mount-point of /dev/hda1, my function will only
return abcd/temp/file ? If yes, this is an (undocumented) feature, yes,
since I need the data relative to the current fs (the code is in a fs
called mfs).
> Since you originally asked for code, (and since its always fun to see other
> people's code) my version (which I began before you posted, but didn't bother
> to fix until now) is attached. You can tell I didn't want to spend the time
> shifting the buffer, so instead I limited myself to a 100-element pathname....
> (quick-and-dirty)
:)
Would you mind posting your answer AND mine to
[EMAIL PROTECTED] ? thanks