On Wednesday March 7, [email protected] wrote:
> At 05:17 PM 3/7/2007, Neil Brown wrote:
> >On Wednesday March 7, [email protected] wrote:
> >>
> >> I think what Tom had in mind was to stat all directories once, remember
> >> their values, have inotify keep an eye on 'em and whenever they change,
> >> update the remembered values. This way, disk access would only have to
> >> be done whenever something changes, which is when the disk is spun up
> >> anyway.
> >
> >There is certainly some sense in that approach. I don't think
> >inotify is needed though. The only part of the stat information we
> >are interested in is major/minor/inode numbers, and they don't change.
>
> Actually I thought it would important to also look at the permission
> bits and/or any acls, in case access were revoked e.g mode 0. The
> export needs to be invalidated, basically as mountd would have found
> if exporting from scratch. Wouldn't it?
No. The mode/acl on anything isn't interesting to mountd. If the
client has access to a file, it gets access, if not: not. That is all
handled by nfsd.
And remember that if you "chmod 0" a directory, that doesn't remove
access from people with files in the directory already open.
>
> Come to think of it, maybe not. If the export goes bad then the
> client gets ESTALE, that's different from revoking access or never
> exporting. In that case I think mountd just needs to be sure the
> export point doesn't go away due to unmount, or is covered by a
> new one.
Mounting on top of an export point is an odd case that is not
explicitly handled. Currently if you do that, the clients won't
notice until after 32 minutes of inactivity.
I'm not sure it is a case that is worth any effort to deal with
'sensibly'.
NeilBrown
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
At 05:48 PM 3/7/2007, Neil Brown wrote:
>No. The mode/acl on anything isn't interesting to mountd. If the
>client has access to a file, it gets access, if not: not. That is all
>handled by nfsd.
>And remember that if you "chmod 0" a directory, that doesn't remove
>access from people with files in the directory already open.
Well, if mountd isn't running as root and the export point is mode 0,
then it can't be exported because the daemon can't stat it, right?
Corner case, I guess, maybe mountd can't be non-root. Agreed on
the revoke-when-open, of course.
Tom.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs