Changeset 3379 in kBuild
- Timestamp:
- Jun 12, 2020 12:54:55 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/nt/kFsCache.c
r3372 r3379 912 912 pCur->pszName = pch; 913 913 pCur->cchName = cchName; 914 pch = kHlpMemPCopy(pch, pchName, cch ShortName);914 pch = kHlpMemPCopy(pch, pchName, cchName); 915 915 *pch++ = '\0'; 916 916 … … 1535 1535 } 1536 1536 } 1537 if (pCur->uCacheGen != KFSOBJ_CACHE_GEN_IGNORE) 1538 pCur->uCacheGen = pCache->auGenerations[pCur->fFlags & KFSOBJ_F_USE_CUSTOM_GEN]; 1537 1539 } 1538 1540 else if (pCur->bObjType == KFSOBJ_TYPE_MISSING) … … 1541 1543 pDir->Obj.pParent->Obj.pszName, pDir->Obj.pszName, pCur->pszName, bObjType)); 1542 1544 pCur->bObjType = bObjType; 1545 if (pCur->uCacheGen != KFSOBJ_CACHE_GEN_IGNORE) 1546 pCur->uCacheGen = pCache->auGenerations[pCur->fFlags & KFSOBJ_F_USE_CUSTOM_GEN]; 1543 1547 } 1544 1548 else … … 1837 1841 pMissing->pParent->Obj.pszName, pMissing->pszName, bObjType, BasicInfo.FileAttributes)); 1838 1842 pMissing->bObjType = bObjType; 1839 pMissing->uCacheGen = pCache->auGenerations[pMissing->fFlags & KFSOBJ_F_USE_CUSTOM_GEN]; 1843 /* (auGenerations[] - 1): make sure it's not considered up to date */ 1844 pMissing->uCacheGen = pCache->auGenerations[pMissing->fFlags & KFSOBJ_F_USE_CUSTOM_GEN] - 1; 1845 /* Trigger parent directory repopulation. */ 1846 if (pMissing->pParent->fPopulated) 1847 pMissing->pParent->fNeedRePopulating = K_TRUE; 1840 1848 /** 1841 1849 * @todo refresh missing object names when it appears. … … 2802 2810 || pParent->Obj.uCacheGen == pCache->auGenerations[pParent->Obj.fFlags & KFSOBJ_F_USE_CUSTOM_GEN]) ) 2803 2811 { /* likely */ } 2804 else if ( (fFlags & (KFSCACHE_LOOKUP_F_NO_INSERT | fFlags &KFSCACHE_LOOKUP_F_NO_REFRESH))2812 else if ( (fFlags & (KFSCACHE_LOOKUP_F_NO_INSERT | KFSCACHE_LOOKUP_F_NO_REFRESH)) 2805 2813 || kFsCachePopuplateOrRefreshDir(pCache, pParent, penmError)) 2806 2814 { /* likely */ } … … 2970 2978 || pParent->Obj.uCacheGen == pCache->auGenerations[pParent->Obj.fFlags & KFSOBJ_F_USE_CUSTOM_GEN]) ) 2971 2979 { /* likely */ } 2972 else if ( (fFlags & (KFSCACHE_LOOKUP_F_NO_INSERT | fFlags &KFSCACHE_LOOKUP_F_NO_REFRESH))2980 else if ( (fFlags & (KFSCACHE_LOOKUP_F_NO_INSERT | KFSCACHE_LOOKUP_F_NO_REFRESH)) 2973 2981 || kFsCachePopuplateOrRefreshDir(pCache, pParent, penmError)) 2974 2982 { /* likely */ }
Note:
See TracChangeset
for help on using the changeset viewer.