1. 13 2月, 2013 1 次提交
    • E
      nfs: Convert idmap to use kuids and kgids · 9f309c86
      Eric W. Biederman 提交于
      Convert nfs_map_name_to_uid to return a kuid_t value.
      Convert nfs_map_name_to_gid to return a kgid_t value.
      Convert nfs_map_uid_to_name to take a kuid_t paramater.
      Convert nfs_map_gid_to_name to take a kgid_t paramater.
      
      Tweak nfs_fattr_map_owner_to_name to use a kuid_t intermediate value.
      Tweak nfs_fattr_map_group_to_name to use a kgid_t intermediate value.
      
      Which makes these functions properly handle kuids and kgids, including
      erroring of the generated kuid or kgid is invalid.
      
      Cc: "J. Bruce Fields" <bfields@fieldses.org>
      Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
      Signed-off-by: N"Eric W. Biederman" <ebiederm@xmission.com>
      9f309c86
  2. 13 10月, 2012 1 次提交
  3. 31 7月, 2012 1 次提交
  4. 06 3月, 2012 1 次提交
  5. 02 3月, 2012 1 次提交
  6. 07 2月, 2012 1 次提交
  7. 01 2月, 2012 1 次提交
    • S
      NFS: idmap PipeFS notifier introduced · eee17325
      Stanislav Kinsbursky 提交于
      v2:
      1) Added "nfs_idmap_init" and "nfs_idmap_quit" definitions for kernels built
      without CONFIG_NFS_V4 option set.
      
      This patch subscribes NFS clients to RPC pipefs notifications. Idmap notifier
      is registering on NFS module load. This notifier callback is responsible for
      creation/destruction of PipeFS idmap pipe dentry for NFS4 clients.
      
      Since ipdmap pipe is created in rpc client pipefs directory, we have make sure,
      that this directory has been created already. IOW RPC client notifier callback
      has been called already. To achive this, PipeFS notifier priorities has been
      introduced (RPC clients notifier priority is greater than NFS idmap one).
      But this approach gives another problem: unlink for RPC client directory will
      be called before NFS idmap pipe unlink on UMOUNT event and will fail, because
      directory is not empty.
      The solution, introduced in this patch, is to try to remove client directory
      once again after idmap pipe was unlinked. This looks like ugly hack, so
      probably it should be replaced in some more elegant way.
      
      Note that no locking required in notifier callback because PipeFS superblock
      pointer is passed as an argument from it's creation or destruction routine and
      thus we can be sure about it's validity.
      Signed-off-by: NStanislav Kinsbursky <skinsbursky@parallels.com>
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      eee17325
  8. 08 1月, 2012 1 次提交
    • T
      NFSv4: Save the owner/group name string when doing open · 6926afd1
      Trond Myklebust 提交于
      ...so that we can do the uid/gid mapping outside the asynchronous RPC
      context.
      This fixes a bug in the current NFSv4 atomic open code where the client
      isn't able to determine what the true uid/gid fields of the file are,
      (because the asynchronous nature of the OPEN call denies it the ability
      to do an upcall) and so fills them with default values, marking the
      inode as needing revalidation.
      Unfortunately, in some cases, the VFS will do some additional sanity
      checks on the file, and may override the server's decision to allow
      the open because it sees the wrong owner/group fields.
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      6926afd1
  9. 12 3月, 2011 1 次提交
  10. 08 10月, 2010 1 次提交
    • B
      NFS: new idmapper · 955a857e
      Bryan Schumaker 提交于
      This patch creates a new idmapper system that uses the request-key function to
      place a call into userspace to map user and group ids to names.  The old
      idmapper was single threaded, which prevented more than one request from running
      at a single time.  This means that a user would have to wait for an upcall to
      finish before accessing a cached result.
      
      The upcall result is stored on a keyring of type id_resolver.  See the file
      Documentation/filesystems/nfs/idmapper.txt for instructions.
      Signed-off-by: NBryan Schumaker <bjschuma@netapp.com>
      [Trond: fix up the return value of nfs_idmap_lookup_name and clean up code]
      Signed-off-by: NTrond Myklebust <Trond.Myklebust@netapp.com>
      955a857e
  11. 31 1月, 2009 1 次提交
  12. 23 9月, 2006 2 次提交
  13. 07 1月, 2006 1 次提交
  14. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4