X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fviced%2Fafsfileprocs.c;h=6d12d2fb10f03c43185388502d0a8e8555bafaa8;hp=2aa0e35d5a228b4fca8ed59f56b12c2f6c10c29d;hb=c240e56bc6bd41373a5e65fd46000b2abb90b3c9;hpb=41918aaf5a93eab7f35bbd8330a976e9c67e7b78 diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index 2aa0e35..6d12d2f 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -744,11 +744,7 @@ Check_PermissionRights(Vnode *targetptr, #define CHGRP(i,t) (((i)->Mask & AFS_SETGROUP) &&((i)->Group != (t)->disk.group)) if (CallingRoutine & CHK_FETCH) { -#ifdef CMUCS - if (VanillaUser(client)) -#else if (CallingRoutine == CHK_FETCHDATA || VanillaUser(client)) -#endif { if (targetptr->disk.type == vDirectory || targetptr->disk.type == vSymlink) { if ( !(rights & PRSFS_LOOKUP) @@ -5864,7 +5860,7 @@ static afs_int32 common_GiveUpCallBacks (struct rx_call *acall, struct AFSCBFids *FidArray, struct AFSCBs *CallBackArray) { - afs_int32 errorCode; + afs_int32 errorCode = 0; register int i; struct client *client; struct rx_connection *tcon; @@ -5885,7 +5881,9 @@ static afs_int32 common_GiveUpCallBacks (struct rx_call *acall, TM_GetTimeOfDay(&opStartTime, 0); #endif /* FS_STATS_DETAILED */ - ViceLog(1, ("SAFS_GiveUpCallBacks (Noffids=%d)\n", FidArray->AFSCBFids_len)); + if (FidArray) + ViceLog(1, ("SAFS_GiveUpCallBacks (Noffids=%d)\n", FidArray->AFSCBFids_len)); + FS_LOCK AFSCallStats.GiveUpCallBacks++, AFSCallStats.TotalCalls++; FS_UNLOCK @@ -5893,6 +5891,8 @@ static afs_int32 common_GiveUpCallBacks (struct rx_call *acall, goto Bad_GiveUpCallBacks; if (!FidArray && !CallBackArray) { + ViceLog(1, ("SAFS_GiveUpAllCallBacks: host=%x\n", + (tcon->peer ? tcon->peer->host : 0))); errorCode = GetClient(tcon, &client); if (!errorCode) DeleteAllCallBacks_r(client->host, 1);