]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: Freelance Short circuit all vol updates
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 19 Jun 2012 22:48:31 +0000 (18:48 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Fri, 7 Dec 2012 00:41:38 +0000 (16:41 -0800)
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.

Reviewed-on: http://gerrit.openafs.org/7636
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
(cherry picked from commit e0b9b89dd98d0bf449556e3f28b479dd61e7eb95)

Change-Id: I95ffc34b9846cba82872aa2d1e308742cddb4727
Reviewed-on: http://gerrit.openafs.org/8634
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsd/cm_volume.c

index a8f34556229928eb32948495ef9a293a59f47850..3eb8f72b1e7021d6c975b3585755eb7b30463e16 100644 (file)
@@ -271,9 +271,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;