Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357823
b: refs/heads/master
c: b566389
h: refs/heads/master
i:
  357821: 27a09c0
  357819: 70e5844
  357815: ac5c807
  357807: e851bce
  357791: ffd30bc
  357759: 972f295
v: v3
  • Loading branch information
Eric W. Biederman committed Feb 13, 2013
1 parent 85026ba commit 90570d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c1810e040d87fcd8fc95aedfd2ef6979d71e517
refs/heads/master: b5663898ec3fa7f1a58a9def9592be345bb173c2
12 changes: 6 additions & 6 deletions trunk/fs/nfsd/nfs4idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ MODULE_PARM_DESC(nfs4_disable_idmapping,
struct ent {
struct cache_head h;
int type; /* User / Group */
uid_t id;
u32 id;
char name[IDMAP_NAMESZ];
char authname[IDMAP_NAMESZ];
};
Expand Down Expand Up @@ -540,7 +540,7 @@ rqst_authname(struct svc_rqst *rqstp)

static __be32
idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen,
uid_t *id)
u32 *id)
{
struct ent *item, key = {
.type = type,
Expand All @@ -564,7 +564,7 @@ idmap_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen
}

static int
idmap_id_to_name(struct svc_rqst *rqstp, int type, uid_t id, char *name)
idmap_id_to_name(struct svc_rqst *rqstp, int type, u32 id, char *name)
{
struct ent *item, key = {
.id = id,
Expand All @@ -587,7 +587,7 @@ idmap_id_to_name(struct svc_rqst *rqstp, int type, uid_t id, char *name)
}

static bool
numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, uid_t *id)
numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id)
{
int ret;
char buf[11];
Expand All @@ -603,7 +603,7 @@ numeric_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namel
}

static __be32
do_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, uid_t *id)
do_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u32 *id)
{
if (nfs4_disable_idmapping && rqstp->rq_cred.cr_flavor < RPC_AUTH_GSS)
if (numeric_name_to_id(rqstp, type, name, namelen, id))
Expand All @@ -616,7 +616,7 @@ do_name_to_id(struct svc_rqst *rqstp, int type, const char *name, u32 namelen, u
}

static int
do_id_to_name(struct svc_rqst *rqstp, int type, uid_t id, char *name)
do_id_to_name(struct svc_rqst *rqstp, int type, u32 id, char *name)
{
if (nfs4_disable_idmapping && rqstp->rq_cred.cr_flavor < RPC_AUTH_GSS)
return sprintf(name, "%u", id);
Expand Down

0 comments on commit 90570d1

Please sign in to comment.