Messages in this thread | | | Date | Mon, 14 Apr 2008 07:48:41 -0700 (PDT) | From | Linus Torvalds <> | Subject | Re: [patch] F_GETPATH for linux |
| |
On Mon, 14 Apr 2008, Christoph Hellwig wrote: > > Adding a duplicated API like this is rather pointless. Especially as > the readlink is easier and makes more sense.
Well, I wouldn't say "makes more sense". It may be more traditional (for Linux), but it has its problems, notably performance. One use of F_GETPATH is for server code, to check that a previous open() didn't follow symlinks to outside of some specified area.
Not that I like F_GETPATH much either, but portability is a strong enough argument that coming up with some *other* way is probably not great.
Linus
| |