1. 04 3月, 2010 1 次提交
  2. 25 2月, 2010 1 次提交
  3. 21 2月, 2010 1 次提交
    • B
      commit_metadata export operation replacing nfsd_sync_dir · f501912a
      Ben Myers 提交于
      - Add commit_metadata export_operation to allow the underlying filesystem to
      decide how to commit an inode most efficiently.
      
      - Usage of nfsd_sync_dir and write_inode_now has been replaced with the
      commit_metadata function that takes a svc_fh.
      
      - The commit_metadata function calls the commit_metadata export_op if it's
      there, or else falls back to sync_inode instead of fsync and write_inode_now
      because only metadata need be synced here.
      
      - nfsd4_sync_rec_dir now uses vfs_fsync so that commit_metadata can be static
      Signed-off-by: NBen Myers <bpm@sgi.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      f501912a
  4. 30 1月, 2010 1 次提交
  5. 28 1月, 2010 1 次提交
    • C
      NFSD: Create PF_INET6 listener in write_ports · 37498292
      Chuck Lever 提交于
      Try to create a PF_INET6 listener for NFSD, if IPv6 is enabled in the
      kernel.
      
      Make sure nfsd_serv's reference count is decreased if
      __write_ports_addxprt() failed to create a listener.  See
      __write_ports_addfd().
      
      Our current plan is to rely on rpc.nfsd to create appropriate IPv6
      listeners when server-side NFS/IPv6 support is desired.  Legacy
      behavior, via the write_threads or write_svc kernel APIs, will remain
      the same -- only IPv4 listeners are created.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      [bfields@citi.umich.edu: Move error-handling code to end]
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      37498292
  6. 27 1月, 2010 1 次提交
    • C
      SUNRPC: NFS kernel APIs shouldn't return ENOENT for "transport not found" · 68717908
      Chuck Lever 提交于
      write_ports() converts svc_create_xprt()'s ENOENT error return to
      EPROTONOSUPPORT so that rpc.nfsd (in user space) can report an error
      message that makes sense.
      
      It turns out that several of the other kernel APIs rpc.nfsd use can
      also return ENOENT from svc_create_xprt(), by way of lockd_up().
      
      On the client side, an NFSv2 or NFSv3 mount request can also return
      the result of lockd_up().  This error may also be returned during an
      NFSv4 mount request, since the NFSv4 callback service uses
      svc_create_xprt() to create the callback listener.  An ENOENT error
      return results in a confusing error message from the mount command.
      
      Let's have svc_create_xprt() return EPROTONOSUPPORT instead of ENOENT.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      68717908
  7. 15 1月, 2010 1 次提交
  8. 13 1月, 2010 3 次提交
  9. 07 1月, 2010 1 次提交
  10. 21 12月, 2009 1 次提交
  11. 20 12月, 2009 1 次提交
  12. 17 12月, 2009 2 次提交
  13. 16 12月, 2009 9 次提交
  14. 15 12月, 2009 5 次提交
  15. 26 11月, 2009 1 次提交
    • J
      nfsd: simplify fh_verify access checks · 864f0f61
      J. Bruce Fields 提交于
      All nfsd security depends on the security checks in fh_verify, and
      especially on nfsd_setuser().
      
      It therefore bothers me that the nfsd_setuser call may be made from
      three different places, depending on whether the filehandle has already
      been mapped to a dentry, and on whether subtreechecking is in force.
      
      Instead, make an unconditional call in fh_verify(), so it's trivial to
      verify that the call always occurs.
      
      That leaves us with a redundant nfsd_setuser() call in the subtreecheck
      case--it needs the correct user set earlier in order to check execute
      permissions on the path to this filehandle--but I'm willing to accept
      that minor inefficiency in the subtreecheck case in return for more
      straightforward permission checking.
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      864f0f61
  16. 15 11月, 2009 1 次提交
  17. 14 11月, 2009 1 次提交
  18. 06 11月, 2009 1 次提交
  19. 05 11月, 2009 1 次提交
    • P
      nfsd: register NFS_ACL with rpcbind · 1b7e0403
      Peter Staubach 提交于
      Modify the NFS server to register the NFS_ACL services with the rpcbind
      daemon.  This allows the client to ping for the existence of the NFS_ACL
      support via commands such as "rpcinfo -t <server> nfs_acl".
      
      This patch also modifies the NFS_ACL support so that responses to
      version 2 NULLPROC requests can be made.
      
      The changelog for the patch which turned off this functionality
      mentioned something about not registering the NFS_ACL as being part of
      some tradition.  I can't find this tradition and the only other
      implementation which supports NFS_ACL does register them with the
      rpcbind daemon.
      Signed-off-by: NPeter Staubach <staubach@redhat.com>
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      1b7e0403
  20. 28 10月, 2009 3 次提交
  21. 02 10月, 2009 1 次提交
  22. 29 9月, 2009 2 次提交
    • A
      nfsd41: use sv_max_mesg for forechannel max sizes · ddc04fd4
      Andy Adamson 提交于
      ca_maxresponsesize and ca_maxrequest size include the RPC header.
      
      sv_max_mesg is sv_max_payolad plus a page for overhead and is used in
      svc_init_buffer to allocate server buffer space for both the request and reply.
      Note that this means we can service an RPC compound that requires
      ca_maxrequestsize (MAXWRITE) or ca_max_responsesize (MAXREAD) but that we do
      not support an RPC compound that requires both ca_maxrequestsize and
      ca_maxresponsesize.
      Signed-off-by: NAndy Adamson <andros@netapp.com>
      [bfields@citi.umich.edu: more documentation updates]
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      ddc04fd4
    • J
      nfsd4: fix error return when pseudoroot missing · f39bde24
      J. Bruce Fields 提交于
      We really shouldn't hit this case at all, and forthcoming kernel and
      nfs-utils changes should eliminate this case; if it does happen,
      consider it a bug rather than reporting an error that doesn't really
      make sense for the operation (since there's no reason for a server to be
      accepting v4 traffic yet have no root filehandle).
      
      Also move some exp_pseudoroot code into a helper function while we're
      here.
      Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
      f39bde24