afs_nfs2_getattr(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_GETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_setattr(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_SETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_lookup(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_LOOKUP, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_readlink(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_READLINK, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_read(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_READ, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_write(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_WRITE, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_create(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_CREATE, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_remove(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_REMOVE, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_rename(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_RENAME, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_link(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_LINK, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_symlink(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_SYMLINK, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_mkdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_MKDIR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_rmdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_RMDIR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_readdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_READDIR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_nfs2_statfs(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs2_dispatcher(0, RFS_STATFS, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs2_noaccess((struct afs_nfs2_resp *)xp);
afs_acl2_getacl(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_GETACL, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl2_setacl(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_SETACL, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl2_getattr(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_GETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl2_access(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_ACCESS, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl2_getxattrdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs2_dispatcher(1, ACLPROC2_GETXATTRDIR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_GETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_SETATTR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_LOOKUP, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_ACCESS, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_READLINK, (char *)args, &exp, rp,
crp);
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs3_dispatcher(0, NFSPROC3_READ, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs3_noaccess((struct afs_nfs3_resp *)xp);
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_WRITE, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_CREATE, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_MKDIR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_SYMLINK, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_MKNOD, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_REMOVE, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_RMDIR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_RENAME, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call = afs_nfs3_dispatcher(0, NFSPROC3_LINK, (char *)args, &exp, rp, crp);
if (call > 1)
afs_nfs3_noaccess((struct afs_nfs3_resp *)xp);
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_READDIR, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_READDIRPLUS, (char *)args, &exp, rp,
crp);
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_FSSTAT, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_FSINFO, (char *)args, &exp, rp, crp);
if (call > 1)
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_PATHCONF, (char *)args, &exp, rp,
crp);
{
u_int call;
afs_nfs3_resp dummy;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(0, NFSPROC3_COMMIT, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl3_getacl(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(1, ACLPROC3_GETACL, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl3_setacl(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(1, ACLPROC3_SETACL, (char *)args, &exp, rp, crp);
if (call > 1)
afs_acl3_getxattrdir(char *args, char *xp, char *exp, char *rp, char *crp)
{
u_int call;
- struct cred *svcred = curthread->t_cred;
- curthread->t_cred = (struct cred *)crp;
+ struct AFS_UCRED *svcred = curthread->t_cred;
+ curthread->t_cred = (struct AFS_UCRED *)crp;
call =
afs_nfs3_dispatcher(1, ACLPROC3_GETXATTRDIR, (char *)args, &exp, rp, crp);
if (call > 1)