Changeset 514 for trunk/client/src/ndpsmb.c
- Timestamp:
- Jan 7, 2011, 12:06:57 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/src/ndpsmb.c
r508 r514 408 408 409 409 /* Create a directory cache with expiration time 15 seconds and up to 32 listings cached. */ 410 dircache_create(&pRes->pdc, 1 0, 32);410 dircache_create(&pRes->pdc, 15, 32); 411 411 412 412 return rc; … … 1088 1088 debug_printf("NdpSetPathInfo in [%p]\n", pConn); 1089 1089 1090 // delete the dir c hache1090 // delete the dir cache 1091 1091 dircache_invalidate(szPathName, pRes->pdc, 1); 1092 1092 … … 1914 1914 debuglocal(9,"NdpFileClose in [%p] %d <%s>\n", pConn, pConn->file.fd, pConn->file.fd < 0 ? "!null!" : pConn->file.fname); 1915 1915 1916 // delete the dir chache1917 dircache_invalidate(pConn->file.fullname, pRes->pdc, 1);1918 1919 1916 do { 1920 1917 if (pConn->file.fd < 0) … … 2038 2035 debuglocal(9,"NdpFileWrite in [%p]\n", pConn); 2039 2036 2037 /* delete the dir cache 2038 this was moved from NdpFileClose() becasue if there are a lot files in the tree all are reread 2039 the problem when moved to here is, that last accessed time is not refreshed 2040 if this is needed, a new function needs to be done to update only one file in the cache */ 2041 dircache_invalidate(pConn->file.fullname, pRes->pdc, 1); 2042 2040 2043 do { 2041 2044 if (pConn->file.fd < 0)
Note:
See TracChangeset
for help on using the changeset viewer.