lkml.org 
[lkml]   [2008]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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


\
 
 \ /
  Last update: 2008-04-14 16:51    [W:0.064 / U:1.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site