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

From: Neil Brown
Date: Tue Aug 24 2010 - 22:07:16 EST


On Mon, 23 Aug 2010 08:19:48 +0530
"Aneesh Kumar K. V" <aneesh.kumar@xxxxxxxxxxxxxxxxxx> wrote:

> On Mon, 23 Aug 2010 09:06:04 +1000, Neil Brown <neilb@xxxxxxx> wrote:
> > [[ Following this approach I would like to avoid any filehandle-specific
> > syscalls altogether.
> > Just use a *at syscall with AT_FILE_HANDLE for filehandle lookup, and use
> > getxattr('system:linux.file_handle') to get the filehandle for a given path.
> >
> > Ofcourse we would need to at *at versions of the *xattr syscalls, but that is
> > probably a good idea anyway.
> > ]]
>
> sys_setxattrat would take 7 arguments.
>

I count 6 - assuming we share the 'flags' argument. There are only 2 xattr
flags currently so there should be room to share.

dirfd path name value size flags == 6

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/