1. 02 10月, 2012 2 次提交
  2. 29 9月, 2012 3 次提交
  3. 17 7月, 2012 2 次提交
    • C
      NFS: Clean up nfs4_proc_setclientid() and friends · 6bbb4ae8
      Chuck Lever 提交于
      Add documenting comments and appropriate debugging messages.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      6bbb4ae8
    • C
      NFS: Treat NFS4ERR_CLID_INUSE as a fatal error · de734831
      Chuck Lever 提交于
      For NFSv4 minor version 0, currently the cl_id_uniquifier allows the
      Linux client to generate a unique nfs_client_id4 string whenever a
      server replies with NFS4ERR_CLID_INUSE.
      
      This implementation seems to be based on a flawed reading of RFC
      3530.  NFS4ERR_CLID_INUSE actually means that the client has presented
      this nfs_client_id4 string with a different principal at some time in
      the past, and that lease is still in use on the server.
      
      For a Linux client this might be rather difficult to achieve: the
      authentication flavor is named right in the nfs_client_id4.id
      string.  If we change flavors, we change strings automatically.
      
      So, practically speaking, NFS4ERR_CLID_INUSE means there is some other
      client using our string.  There is not much that can be done to
      recover automatically.  Let's make it a permanent error.
      
      Remove the recovery logic in nfs4_proc_setclientid(), and remove the
      cl_id_uniquifier field from the nfs_client data structure.  And,
      remove the authentication flavor from the nfs_client_id4 string.
      
      Keeping the authentication flavor in the nfs_client_id4.id string
      means that we could have a separate lease for each authentication
      flavor used by mounts on the client.  But we want just one lease for
      all the mounts on this client.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      de734831
  4. 29 6月, 2012 5 次提交
  5. 05 6月, 2012 1 次提交
  6. 29 5月, 2012 1 次提交
  7. 28 5月, 2012 5 次提交
  8. 26 5月, 2012 5 次提交
  9. 25 5月, 2012 1 次提交
  10. 23 5月, 2012 2 次提交
    • C
      NFS: Force server to drop NFSv4 state · 2c820d9a
      Chuck Lever 提交于
      nfs4_reset_all_state() refreshes the boot verifier a server sees to
      trigger that server to wipe this client's state.  This function is
      invoked when an NFSv4.1 server reports that it has revoked some or
      all of a client's NFSv4 state.
      
      To facilitate server trunking discovery, we will eventually want to
      move the cl_boot_time field to a more global structure.  The Uniform
      Client String model (and specifically, server trunking detection)
      requires that all servers see the same boot verifier until the client
      actually does reboot, and not a fresh verifier every time the client
      unmounts and remounts the server.
      
      Without the cl_boot_time field, however, nfs4_reset_all_state() will
      have to find some other way to force the server to purge the client's
      NFSv4 state.
      
      Because these verifiers are opaque (ie, the server doesn't know or
      care that they happen to be timestamps), we can force the server
      to wipe NFSv4 state by updating the boot verifier as we do now, then
      immediately afterwards establish a fresh client ID using the old boot
      verifier again.
      
      Hopefully there are no extra paranoid server implementations that keep
      track of the client's boot verifiers and prevent clients from reusing
      a previous one.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      2c820d9a
    • C
      NFS: Add NFSDBG_STATE · e3c0fb7e
      Chuck Lever 提交于
      fs/nfs/nfs4state.c does not yet have any dprintk() call sites, and I'm
      about to introduce some.  We will need a new flag for enabling them.
      Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      e3c0fb7e
  11. 22 4月, 2012 2 次提交
  12. 21 4月, 2012 1 次提交
  13. 21 3月, 2012 1 次提交
  14. 17 3月, 2012 1 次提交
  15. 14 3月, 2012 1 次提交
  16. 13 3月, 2012 1 次提交
  17. 12 3月, 2012 1 次提交
    • T
      NFS: Fix a number of sparse warnings · 17280175
      Trond Myklebust 提交于
      Fix a number of "warning: symbol 'foo' was not declared. Should it be
      static?" conditions.
      
      Fix 2 cases of "warning: Using plain integer as NULL pointer"
      
      fs/nfs/delegation.c:263:31: warning: restricted fmode_t degrades to integer
        - We want to allow upgrades to a WRITE delegation, but should otherwise
          consider servers that hand out duplicate delegations to be borken.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      17280175
  18. 11 3月, 2012 1 次提交
    • T
      NFSv4.0: Re-establish the callback channel on NFS4ERR_CB_PATHDOWN · ad1e3968
      Trond Myklebust 提交于
      When the NFSv4.0 server tells us that it can no-longer talk to us
      on the callback channel, we should attempt a new SETCLIENTID in
      order to re-transmit the callback channel information.
      
      Note that as long as we do not change the boot verifier, this is
      a safe procedure; the server is required to keep our state.
      
      Also move the function nfs_handle_cb_pathdown to fs/nfs/nfs4state.c,
      and change the name in order to mark it as being specific to NFSv4.0.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      ad1e3968
  19. 09 3月, 2012 1 次提交
  20. 08 3月, 2012 1 次提交
  21. 07 3月, 2012 1 次提交
  22. 06 3月, 2012 1 次提交