1. 22 4月, 2015 1 次提交
  2. 04 2月, 2015 1 次提交
  3. 03 2月, 2015 2 次提交
    • C
      nfsd: implement pNFS operations · 9cf514cc
      Christoph Hellwig 提交于
      Add support for the GETDEVICEINFO, LAYOUTGET, LAYOUTCOMMIT and
      LAYOUTRETURN NFSv4.1 operations, as well as backing code to manage
      outstanding layouts and devices.
      
      Layout management is very straight forward, with a nfs4_layout_stateid
      structure that extends nfs4_stid to manage layout stateids as the
      top-level structure.  It is linked into the nfs4_file and nfs4_client
      structures like the other stateids, and contains a linked list of
      layouts that hang of the stateid.  The actual layout operations are
      implemented in layout drivers that are not part of this commit, but
      will be added later.
      
      The worst part of this commit is the management of the pNFS device IDs,
      which suffers from a specification that is not sanely implementable due
      to the fact that the device-IDs are global and not bound to an export,
      and have a small enough size so that we can't store the fsid portion of
      a file handle, and must never be reused.  As we still do need perform all
      export authentication and validation checks on a device ID passed to
      GETDEVICEINFO we are caught between a rock and a hard place.  To work
      around this issue we add a new hash that maps from a 64-bit integer to a
      fsid so that we can look up the export to authenticate against it,
      a 32-bit integer as a generation that we can bump when changing the device,
      and a currently unused 32-bit integer that could be used in the future
      to handle more than a single device per export.  Entries in this hash
      table are never deleted as we can't reuse the ids anyway, and would have
      a severe lifetime problem anyway as Linux export structures are temporary
      structures that can go away under load.
      
      Parts of the XDR data, structures and marshaling/unmarshaling code, as
      well as many concepts are derived from the old pNFS server implementation
      from Andy Adamson, Benny Halevy, Dean Hildebrand, Marc Eshel, Fred Isaman,
      Mike Sager, Ricardo Labiaga and many others.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      9cf514cc
    • C
      nfs: add LAYOUT_TYPE_MAX enum value · 6cae0a46
      Christoph Hellwig 提交于
      This gives us a nice upper bound for later use in nfѕd.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      6cae0a46
  4. 26 11月, 2014 2 次提交
  5. 01 10月, 2014 1 次提交
  6. 30 9月, 2014 2 次提交
  7. 29 8月, 2014 1 次提交
  8. 07 6月, 2014 1 次提交
  9. 20 11月, 2013 1 次提交
  10. 05 11月, 2013 2 次提交
  11. 31 10月, 2013 1 次提交
  12. 29 10月, 2013 1 次提交
  13. 09 6月, 2013 2 次提交
  14. 13 5月, 2013 1 次提交
  15. 13 2月, 2013 1 次提交
    • E
      nfsd: Handle kuids and kgids in the nfs4acl to posix_acl conversion · ab8e4aee
      Eric W. Biederman 提交于
      In struct nfs4_ace remove the member who and replace it with an
      anonymous union holding who_uid and who_gid.  Allowing typesafe
      storage uids and gids.
      
      Add a helper pace_gt for sorting posix_acl_entries.
      
      In struct posix_user_ace_state to replace uid with a union
      of kuid_t uid and kgid_t gid.
      
      Remove all initializations of the deprecated posic_acl_entry
      e_id field.  Which is not present when user namespaces are enabled.
      
      Split find_uid into two functions find_uid and find_gid that work
      in a typesafe manner.
      
      In nfs4xdr update nfsd4_encode_fattr to deal with the changes
      in struct nfs4_ace.
      
      Rewrite nfsd4_encode_name to take a kuid_t and a kgid_t instead
      of a generic id and flag if it is a group or a uid.  Replace
      the group flag with a test for a valid gid.
      
      Modify nfsd4_encode_user to take a kuid_t and call the modifed
      nfsd4_encode_name.
      
      Modify nfsd4_encode_group to take a kgid_t and call the modified
      nfsd4_encode_name.
      
      Modify nfsd4_encode_aclname to take an ace instead of taking the
      fields of an ace broken out.  This allows it to detect if the ace is
      for a user or a group and to pass the appropriate value while still
      being typesafe.
      
      Cc: "J. Bruce Fields" <bfields@fieldses.org>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
      ab8e4aee
  16. 13 10月, 2012 1 次提交
  17. 27 5月, 2012 1 次提交
  18. 26 5月, 2012 1 次提交
  19. 25 5月, 2012 2 次提交
  20. 06 3月, 2012 1 次提交
  21. 18 2月, 2012 1 次提交
  22. 19 10月, 2011 1 次提交
  23. 28 8月, 2011 1 次提交
  24. 01 8月, 2011 1 次提交
  25. 13 7月, 2011 3 次提交
  26. 30 5月, 2011 1 次提交
  27. 30 4月, 2011 1 次提交
  28. 31 3月, 2011 1 次提交
  29. 25 3月, 2011 1 次提交
  30. 24 3月, 2011 1 次提交
  31. 12 1月, 2011 2 次提交