From: Jeffrey Altman Date: Tue, 19 Jun 2012 22:48:31 +0000 (-0400) Subject: Windows: Freelance Short circuit all vol updates X-Git-Tag: upstream/1.8.0_pre1^2~2282 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e0b9b89dd98d0bf449556e3f28b479dd61e7eb95;p=packages%2Fo%2Fopenafs.git Windows: Freelance Short circuit all vol updates As long as the cell is the Freelance Cell ID the volume updates should be short circuited. There is no benefit to performing the extra work. Change-Id: I3449d8a11607406a616918f9a60796552a6cf6d4 Reviewed-on: http://gerrit.openafs.org/7636 Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/cm_volume.c b/src/WINNT/afsd/cm_volume.c index dd40e313c..e99d0240d 100644 --- a/src/WINNT/afsd/cm_volume.c +++ b/src/WINNT/afsd/cm_volume.c @@ -277,9 +277,9 @@ long cm_UpdateVolumeLocation(struct cm_cell *cellp, cm_user_t *userp, cm_req_t * } #ifdef AFS_FREELANCE_CLIENT - if ( cellp->cellID == AFS_FAKE_ROOT_CELL_ID && volp->vol[RWVOL].ID == AFS_FAKE_ROOT_VOL_ID ) + if (cellp->cellID == AFS_FAKE_ROOT_CELL_ID) { - freelance = 1; + freelance = 1; memset(&vldbEntry, 0, sizeof(vldbEntry)); vldbEntry.flags |= VLF_RWEXISTS; vldbEntry.volumeId[0] = AFS_FAKE_ROOT_VOL_ID;