summaryrefslogtreecommitdiffstats
path: root/sys/fs/nfs/nfs_commonacl.c
Commit message (Collapse)AuthorAgeFilesLines
* Add DEXITCODE plumbing to NFS.zack2011-07-161-11/+27
| | | | | | | | | | | | | | | | Isilon has the concept of an in-memory exit-code ring that saves the last exit code of a function and allows for stack tracing. This is very helpful when debugging tough issues. This patch is essentially a no-op for BSD at this point, until we upstream the dexitcode logic itself. The patch adds DEXITCODE calls to every NFS function that returns an errno error code. A number of code paths were also reorganized to have single exit paths, to reduce code duplication. Submitted by: David Kwan <dkwan@isilon.com> Reviewed by: rmacklem Approved by: zml (mentor) MFC after: 2 weeks
* Fix the experimental NFSv4 server so that it uses VOP_PATHCONF()rmacklem2011-04-141-1/+1
| | | | | | | | | to determine if a file system supports NFSv4 ACLs. Since VOP_PATHCONF() must be called with a locked vnode, the function is called before nfsvno_fillattr() and the result is passed in as an extra argument. MFC after: 2 weeks
* Modify the experimental server so that it uses VOP_ACCESSX().rmacklem2009-12-251-64/+0
| | | | | | | | | | This is necessary in order to enable NFSv4 ACL support. The argument to nfsvno_accchk() was changed to an accmode_t and the function nfsrv_aclaccess() was no longer needed and, therefore, deleted. Reviewed by: trasz MFC after: 2 weeks
* Remove unneeded ifdefs.trasz2009-12-031-185/+0
| | | | Reviewed by: rmacklem
* Fix typo in the comment.trasz2009-09-301-1/+1
|
* Don't check MAC in the NFS server ACL set path, right now we aren'trwatson2009-06-051-4/+0
| | | | enforcing MAC for NFS clients.
* Fix the experimental nfs subsystem so that it builds with thermacklem2009-05-261-2/+2
| | | | | | | | current NFSv4 ACLs, as defined in sys/acl.h. It still needs a way to test a mount point for NFSv4 ACL support before it will work. Until then, the NFSHASNFS4ACL() macro just always returns 0. Approved by: kib (mentor)
* Adapt to the new ACL #define names.trasz2009-05-261-13/+13
| | | | Reviewed by: rmacklem@
* Add the experimental nfs subtree to the kernel, that includesrmacklem2009-05-041-0/+750
support for NFSv4 as well as NFSv2 and 3. It lives in 3 subdirs under sys/fs: nfs - functions that are common to the client and server nfsclient - a mutation of sys/nfsclient that call generic functions to do RPCs and handle state. As such, it retains the buffer cache handling characteristics and vnode semantics that are found in sys/nfsclient, for the most part. nfsserver - the server. It includes a DRC designed specifically for NFSv4, that is used instead of the generic DRC in sys/rpc. The build glue will be checked in later, so at this point, it consists of 3 new subdirs that should not affect kernel building. Approved by: kib (mentor)
OpenPOWER on IntegriCloud