diff options
author | David Howells <dhowells@redhat.com> | 2006-08-22 20:06:08 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-09-22 23:24:31 -0400 |
commit | adfa6f980bd46974e6b32b22dd0c45e3f52063f4 (patch) | |
tree | 7dbc86985faa0fce0e73103979262c1593ea3a3b /fs/nfs/idmap.c | |
parent | 5ae1fbce142b67bf59e15fb1af96e88a96abde7b (diff) |
NFS: Rename struct nfs4_client to struct nfs_client
Rename struct nfs4_client to struct nfs_client so that it can become the basis
for a general client record for NFS2 and NFS3 in addition to NFS4.
Signed-Off-By: David Howells <dhowells@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/idmap.c')
-rw-r--r-- | fs/nfs/idmap.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c index 873deb96a6cd..d05148ec9414 100644 --- a/fs/nfs/idmap.c +++ b/fs/nfs/idmap.c | |||
@@ -109,7 +109,7 @@ static struct rpc_pipe_ops idmap_upcall_ops = { | |||
109 | }; | 109 | }; |
110 | 110 | ||
111 | void | 111 | void |
112 | nfs_idmap_new(struct nfs4_client *clp) | 112 | nfs_idmap_new(struct nfs_client *clp) |
113 | { | 113 | { |
114 | struct idmap *idmap; | 114 | struct idmap *idmap; |
115 | 115 | ||
@@ -138,7 +138,7 @@ nfs_idmap_new(struct nfs4_client *clp) | |||
138 | } | 138 | } |
139 | 139 | ||
140 | void | 140 | void |
141 | nfs_idmap_delete(struct nfs4_client *clp) | 141 | nfs_idmap_delete(struct nfs_client *clp) |
142 | { | 142 | { |
143 | struct idmap *idmap = clp->cl_idmap; | 143 | struct idmap *idmap = clp->cl_idmap; |
144 | 144 | ||
@@ -491,27 +491,27 @@ static unsigned int fnvhash32(const void *buf, size_t buflen) | |||
491 | return (hash); | 491 | return (hash); |
492 | } | 492 | } |
493 | 493 | ||
494 | int nfs_map_name_to_uid(struct nfs4_client *clp, const char *name, size_t namelen, __u32 *uid) | 494 | int nfs_map_name_to_uid(struct nfs_client *clp, const char *name, size_t namelen, __u32 *uid) |
495 | { | 495 | { |
496 | struct idmap *idmap = clp->cl_idmap; | 496 | struct idmap *idmap = clp->cl_idmap; |
497 | 497 | ||
498 | return nfs_idmap_id(idmap, &idmap->idmap_user_hash, name, namelen, uid); | 498 | return nfs_idmap_id(idmap, &idmap->idmap_user_hash, name, namelen, uid); |
499 | } | 499 | } |
500 | 500 | ||
501 | int nfs_map_group_to_gid(struct nfs4_client *clp, const char *name, size_t namelen, __u32 *uid) | 501 | int nfs_map_group_to_gid(struct nfs_client *clp, const char *name, size_t namelen, __u32 *uid) |
502 | { | 502 | { |
503 | struct idmap *idmap = clp->cl_idmap; | 503 | struct idmap *idmap = clp->cl_idmap; |
504 | 504 | ||
505 | return nfs_idmap_id(idmap, &idmap->idmap_group_hash, name, namelen, uid); | 505 | return nfs_idmap_id(idmap, &idmap->idmap_group_hash, name, namelen, uid); |
506 | } | 506 | } |
507 | 507 | ||
508 | int nfs_map_uid_to_name(struct nfs4_client *clp, __u32 uid, char *buf) | 508 | int nfs_map_uid_to_name(struct nfs_client *clp, __u32 uid, char *buf) |
509 | { | 509 | { |
510 | struct idmap *idmap = clp->cl_idmap; | 510 | struct idmap *idmap = clp->cl_idmap; |
511 | 511 | ||
512 | return nfs_idmap_name(idmap, &idmap->idmap_user_hash, uid, buf); | 512 | return nfs_idmap_name(idmap, &idmap->idmap_user_hash, uid, buf); |
513 | } | 513 | } |
514 | int nfs_map_gid_to_group(struct nfs4_client *clp, __u32 uid, char *buf) | 514 | int nfs_map_gid_to_group(struct nfs_client *clp, __u32 uid, char *buf) |
515 | { | 515 | { |
516 | struct idmap *idmap = clp->cl_idmap; | 516 | struct idmap *idmap = clp->cl_idmap; |
517 | 517 | ||