DragonFly BSD
DragonFly kernel List (threaded) for 2004-12
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: naccess and AFS

To: dillon@xxxxxxxxxxxxxxxxxxxx
From: Richard Nyberg <rnyberg@xxxxxxxx>
Date: Wed, 08 Dec 2004 10:25:12 +0100

At Tue, 7 Dec 2004 14:41:07 -0800 (PST),
Matthew Dillon wrote:
> :Hello Matt!
> :
> :AFS uses acl:s to determine who can do what in a directory.
> :Unfortunately naccess assusmes it can determine this from
> :the unix user, group and mode information.
> :
> :Below is a patch that works for me...
> :
> :        -Richard
>     Well, we can't quite do that, it undoes part of the purpose of naccess()
>     which is to reduce the complexity of VFS's and to be able to cache the
>     attr results and avoid a VFS call entirely (which will be necessary for
>     efficiency when the VFS's are threaded).

Ah! I see.

>     Not to say that we can't call VOP_ACCESS, only that what needs to be
>     done is to have those VFSs which require further checks to set a flag
>     in the returned vattr telling naccess() to do the additional check(s).
>     Eventually we will be able to add code to cache that information as well.
>     Would you like to have a go at doing that?

Yes. Expect stupid questions and/or new patches coming your way :)


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]