1. 02 Jul, 2008 2 commits
  2. 01 Jul, 2008 1 commit
  3. 30 Jun, 2008 4 commits
    • Jeff Layton's avatar
      nfsd: treat all shutdown signals as equivalent · 100766f8
      Jeff Layton authored
      knfsd currently uses 2 signal masks when processing requests. A "loose"
      mask (SHUTDOWN_SIGS) that it uses when receiving network requests, and
      then a more "strict" mask (ALLOWED_SIGS, which is just SIGKILL) that it
      allows when doing the actual operation on the local storage.
      
      This is apparently unnecessarily complicated. The underlying filesystem
      should be able to sanely handle a signal in the middle of an operation.
      This patch removes the signal mask handling from knfsd altogether. When
      knfsd is started as a kthread, all signals are ignored. It then allows
      all of the signals in SHUTDOWN_SIGS. There's no need to set the mask
      as well.
      Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      100766f8
    • J. Bruce Fields's avatar
      nfs: rewrap NFS/RDMA documentation to 80 lines · 3cd2cfea
      J. Bruce Fields authored
      Wrap long lines.
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      3cd2cfea
    • James Lentini's avatar
      update NFS/RDMA documentation · 007de8b4
      James Lentini authored
      Update the NFS/RDMA documentation to clarify how to run mount.nfs.
      Signed-off-by: default avatarJames Lentini <jlentini@netapp.com>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      007de8b4
    • Neil Brown's avatar
      nfsd: fix spurious EACCESS in reconnect_path() · 496d6c32
      Neil Brown authored
      Thanks to Frank Van Maarseveen for the original problem report: "A
      privileged process on an NFS client which drops privileges after using
      them to change the current working directory, will experience incorrect
      EACCES after an NFS server reboot. This problem can also occur after
      memory pressure on the server, particularly when the client side is
      quiet for some time."
      
      This occurs because the filehandle points to a directory whose parents
      are no longer in the dentry cache, and we're attempting to reconnect the
      directory to its parents without adequate permissions to perform lookups
      in the parent directories.
      
      We can therefore fix the problem by acquiring the necessary capabilities
      before attempting the reconnection.  We do this only in the
      no_subtree_check case, since the documented behavior of the
      subtree_check export option requires the server to check that the user
      has lookup permissions on all parents.
      
      The subtree_check case still has a problem, since reconnect_path()
      unnecessarily requires both read and lookup permissions on all parent
      directories.  However, a fix in that case would be more delicate, and
      use of subtree_check is already discouraged for other reasons.
      Signed-off-by: default avatarNeil Brown <neilb@suse.de>
      Cc: Frank van Maarseveen <frankvm@frankvm.com>
      Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
      496d6c32
  4. 23 Jun, 2008 17 commits
  5. 18 May, 2008 16 commits