Re: [PATCH -V18 04/13] vfs: Allow handle based open on symlinks

From: Neil Brown
Date: Fri Aug 20 2010 - 19:48:37 EST


On Fri, 20 Aug 2010 15:25:29 +0200
Peter Dijkstra <peter@xxxxxxxxxxxxx> wrote:

> On Fri, 2010-08-20 at 19:53 +1000, Neil Brown wrote:
> > With futexes we suddenly get a file descriptor for something we could never
> > get a file descriptor on before and that doesn't seem to be a problem.
>
> FWIW
>
> commit 82af7aca56c67061420d618cc5a30f0fd4106b80
> Author: Eric Sesterhenn <snakebyte@xxxxxx>
> Date: Fri Jan 25 10:40:46 2008 +0100
>
> Removal of FUTEX_FD

Interesting - thanks.

OK, adjust my argument to reference signalfd, timerfs and pollfd.

I haven't looked at that code before - "anon_inode_getfd" gives you an fd on
an inode for which
(stat.st_mode & S_IFMT) == 0
Cool! They have no format at all :-)

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/