freelance-fake-root-vol-id-fix-20040606
[openafs.git] / src / WINNT / afsd / cm_vnodeops.c
index ed5f82c..00b90d3 100644 (file)
@@ -1012,6 +1012,7 @@ long cm_Lookup(cm_scache_t *dscp, char *namep, long flags, cm_user_t *userp,
                 return CM_ERROR_NOSUCHFILE;
         }
         else {  /* nonexistent dir on freelance root, so add it */
+                       osi_Log1(afsd_logp,"cm_Lookup adding mount for non-existent directory: %s", namep);
             code = cm_FreelanceAddMount(namep, namep, "root.cell.",
                                        &rock.fid);
             if (code < 0) {   /* add mount point failed, so give up */
@@ -1550,10 +1551,10 @@ long cm_TryBulkProc(cm_scache_t *scp, cm_dirEntry_t *dep, void *rockp,
        // to be bulkstat-ed, instead, we call getSCache directly and under
        // getSCache, it is handled specially.
        if      (cm_freelanceEnabled &&
-           tfid.cell==0x1 && tfid.volume==0x20000001 &&
+           tfid.cell==0x1 && tfid.volume==AFS_FAKE_ROOT_VOL_ID &&
                           !(tfid.vnode==0x1 && tfid.unique==0x1) )
        {
-        osi_Log0(afsd_logp, "cm_TryBulkProc calling cm_GetSCache to avoid BulkStat");
+        osi_Log0(afsd_logp, "cm_TryBulkProc Freelance calls cm_SCache on root.afs mountpoint");
                return cm_GetSCache(&tfid, &tscp, NULL, NULL);
        }
 #endif /* AFS_FREELANCE_CLIENT */