int
afs_mkdir(OSI_VC_DECL(adp), char *aname, struct vattr *attrs,
- register struct vcache **avcp, struct AFS_UCRED *acred)
+ register struct vcache **avcp, afs_ucred_t *acred)
{
struct vrequest treq;
register afs_int32 code;
InStatus.Mask = AFS_SETMODTIME | AFS_SETMODE | AFS_SETGROUP;
InStatus.ClientModTime = osi_Time();
InStatus.UnixModeBits = attrs->va_mode & 0xffff; /* only care about protection bits */
- InStatus.Group = (afs_int32) acred->cr_gid;
+ InStatus.Group = (afs_int32) afs_cr_gid(acred);
tdc = afs_GetDCache(adp, (afs_size_t) 0, &treq, &offset, &len, 1);
ObtainWriteLock(&adp->lock, 153);
/* Get a new dcache for it first. */
new_dc = afs_GetDCache(tvc, (afs_size_t) 0, &treq, &offset, &len, 1);
if (!new_dc) {
- printf("afs_mkdir: can't get new dcache for dir.\n");
+ /* printf("afs_mkdir: can't get new dcache for dir.\n"); */
code = ENOENT;
goto done;
}
(afs_int32 *) &newFid.Fid,
(afs_int32 *) &adp->f.fid.Fid);
ReleaseWriteLock(&afs_xdcache);
- if (code)
- printf("afs_mkdir: afs_dirMakeDir code = %u\n", code);
+ /* if (code) printf("afs_mkdir: afs_dirMakeDir code = %u\n", code); */
afs_PutDCache(new_dc);
/* don't set CDirty in here because RPC is called synchronously */
#if defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
afs_rmdir(OSI_VC_DECL(adp), char *aname, struct vnode *cdirp,
- struct AFS_UCRED *acred)
+ afs_ucred_t *acred)
#else
-afs_rmdir(OSI_VC_DECL(adp), char *aname, struct AFS_UCRED *acred)
+afs_rmdir(OSI_VC_DECL(adp), char *aname, afs_ucred_t *acred)
#endif
{
struct vrequest treq;
if (!tdc) {
ReleaseWriteLock(&adp->lock);
- printf("afs_rmdir: No local dcache!\n");
+ /* printf("afs_rmdir: No local dcache!\n"); */
code = ENETDOWN;
goto done;
}
ReleaseSharedLock(&afs_xvcache);
if (!tvc) {
- printf("afs_rmdir: Can't find dir's vcache!\n");
+ /* printf("afs_rmdir: Can't find dir's vcache!\n"); */
ReleaseSharedLock(&tdc->lock);
afs_PutDCache(tdc); /* drop ref count */
ReleaseWriteLock(&adp->lock);