1. 29 5月, 2014 3 次提交
  2. 27 5月, 2014 2 次提交
  3. 23 5月, 2014 3 次提交
  4. 18 4月, 2014 1 次提交
    • J
      Revert "nfsd4: fix nfs4err_resource in 4.1 case" · fc208d02
      J. Bruce Fields 提交于
      Since we're still limiting attributes to a page, the result here is that
      a large getattr result will return NFS4ERR_REP_TOO_BIG/TOO_BIG_TO_CACHE
      instead of NFS4ERR_RESOURCE.
      
      Both error returns are wrong, and the real bug here is the arbitrary
      limit on getattr results, fixed by as-yet out-of-tree patches.  But at a
      minimum we can make life easier for clients by sticking to one broken
      behavior in released kernels instead of two....
      
      Trond says:
      
      	one immediate consequence of this patch will be that NFSv4.1
      	clients will now report EIO instead of EREMOTEIO if they hit the
      	problem. That may make debugging a little less obvious.
      
      	Another consequence will be that if we ever do try to add client
      	side handling of NFS4ERR_REP_TOO_BIG, then we now have to deal
      	with the “handle existing buggy server” syndrome.
      Reported-by: NTrond Myklebust <trond.myklebust@primarydata.com>
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      fc208d02
  5. 01 4月, 2014 1 次提交
  6. 29 3月, 2014 3 次提交
  7. 28 3月, 2014 4 次提交
  8. 25 1月, 2014 1 次提交
  9. 09 1月, 2014 1 次提交
  10. 08 1月, 2014 2 次提交
  11. 04 1月, 2014 4 次提交
  12. 03 1月, 2014 1 次提交
  13. 11 12月, 2013 1 次提交
  14. 20 11月, 2013 1 次提交
    • J
      nfsd4: fix xdr decoding of large non-write compounds · 365da4ad
      J. Bruce Fields 提交于
      This fixes a regression from 24750082
      "nfsd4: fix decoding of compounds across page boundaries".  The previous
      code was correct: argp->pagelist is initialized in
      nfs4svc_deocde_compoundargs to rqstp->rq_arg.pages, and is therefore a
      pointer to the page *after* the page we are currently decoding.
      
      The reason that patch nevertheless fixed a problem with decoding
      compounds containing write was a bug in the write decoding introduced by
      5a80a54d "nfsd4: reorganize write
      decoding", after which write decoding no longer adhered to the rule that
      argp->pagelist point to the next page.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      365da4ad
  15. 15 11月, 2013 1 次提交
  16. 14 11月, 2013 1 次提交
  17. 02 11月, 2013 1 次提交
  18. 31 10月, 2013 1 次提交
  19. 30 10月, 2013 1 次提交
  20. 04 9月, 2013 1 次提交
  21. 08 8月, 2013 1 次提交
  22. 09 7月, 2013 1 次提交
    • J
      nfsd4: allow destroy_session over destroyed session · f0f51f5c
      J. Bruce Fields 提交于
      RFC 5661 allows a client to destroy a session using a compound
      associated with the destroyed session, as long as the DESTROY_SESSION op
      is the last op of the compound.
      
      We attempt to allow this, but testing against a Solaris client (which
      does destroy sessions in this way) showed that we were failing the
      DESTROY_SESSION with NFS4ERR_DELAY, because we assumed the reference
      count on the session (held by us) represented another rpc in progress
      over this session.
      
      Fix this by noting that in this case the expected reference count is 1,
      not 0.
      
      Also, note as long as the session holds a reference to the compound
      we're destroying, we can't free it here--instead, delay the free till
      the final put in nfs4svc_encode_compoundres.
      Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
      f0f51f5c
  23. 02 7月, 2013 4 次提交