lkml.org 
[lkml]   [2009]   [Jun]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 00/17] [RFC] AFS: Implement OpenAFS pioctls(version)s


On Wed, 17 Jun 2009, Al Viro wrote:

> On Wed, Jun 17, 2009 at 09:09:47AM -0700, Linus Torvalds wrote:
> > We've traditionally had that magic "open with flag=3" to do a magic open
> > of device files without waiting, and we have O_NOFOLLOW to open symlinks
> > without following them (sadly, it just errors out, rather than opening the
> > symlink, but that's another detail).
> >
> > So I think it should be solvable some way, but not by trying to find the
> > mount point.
>
> O_NOFOLLOW *will* open their mountpoints just fine, without triggering
> automount.

That's not the problem with O_NOFOLLOW.

The problem is that if you want to actually open the symlink itself (say,
you do some filesystem cleanup operation on it, like saying "drop the
caches of this file"), you can't do it. O_NOFOLLOW won't open the symlink,
it will just refuse to follow it, and return an error.

Linus


\
 
 \ /
  Last update: 2009-10-18 23:28    [W:0.171 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site