Changeset 966 for trunk/client/src/ndpsmb.c
- Timestamp:
- Aug 19, 2016, 2:24:06 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/src/ndpsmb.c
r964 r966 29 29 #define INCL_LONGLONG 30 30 #include <ndextpl2.h> 31 #include "dircache.h" 31 32 #include "smbwrp.h" 32 33 #include "util.h" … … 499 500 * the above values come from the gui. default: timeout 10; listings: 32 500 501 */ 501 dircache_create(pRes); 502 dircache_create(&pRes->pdc, (void*) pRes, 503 pRes->cachetimeout, pRes->cachedepth); 502 504 503 505 return rc; … … 715 717 Resource *pRes = (Resource *)resource; 716 718 ENTER(); 717 dircache_delete(pRes); 719 720 // free cache dir 721 dircache_delete(pRes->pdc); 722 723 // free local resources 718 724 memset(&pRes->srv, 0, sizeof(pRes->srv)); 719 725 debuglocal(pRes, 9, "NdpFreeResource %d\n", NO_ERROR); … … 957 963 // First check if there is information in the directory cache. 958 964 unsigned long ulAge = 0; 959 if (dircache_find_path(pRes , szPath, &finfo, &ulAge))965 if (dircache_find_path(pRes->pdc, szPath, &finfo, &ulAge)) 960 966 { 961 967 if (ulAge <= 15) /* @todo configurable. */ … … 1201 1207 1202 1208 // delete the dir cache 1203 dircache_invalidate( szPathName, pRes, 1);1209 dircache_invalidate(pRes->pdc, szPathName, 1); 1204 1210 1205 1211 do { … … 1514 1520 debuglocal(pRes, 9, "NdpForceDelete in [%p]\n", pConn); 1515 1521 1516 dircache_invalidate( szFile, pRes, 1);1522 dircache_invalidate(pRes->pdc, szFile, 1); 1517 1523 1518 1524 do { … … 1543 1549 debuglocal(pRes, 9, "NdpCreateDir in [%p]\n", pConn); 1544 1550 1545 dircache_invalidate( szDirName, pRes, 1);1551 dircache_invalidate(pRes->pdc, szDirName, 1); 1546 1552 1547 1553 do { … … 1575 1581 debuglocal(pRes, 9, "NdpDeleteDir in [%p]\n", pConn); 1576 1582 1577 dircache_invalidate( szDir, pRes, 1);1583 dircache_invalidate(pRes->pdc, szDir, 1); 1578 1584 1579 1585 do { … … 1605 1611 debuglocal(pRes, 9, "NdpMove in [%p] from <%s> to <%s>\n", pConn, szSrc, szDst); 1606 1612 1607 dircache_invalidate( szSrc, pRes, 1);1608 dircache_invalidate( szDst, pRes, 1);1613 dircache_invalidate(pRes->pdc, szSrc, 1); 1614 dircache_invalidate(pRes->pdc, szDst, 1); 1609 1615 1610 1616 do … … 1669 1675 1670 1676 if (flags & O_CREAT) 1671 dircache_invalidate( szFileName, pRes, 1);1677 dircache_invalidate(pRes->pdc, szFileName, 1); 1672 1678 1673 1679 do { … … 2015 2021 2016 2022 // delete the dir cache 2017 dircache_invalidate(p Conn->file.fullname, pRes, 1);2023 dircache_invalidate(pRes->pdc, pConn->file.fullname, 1); 2018 2024 2019 2025 do { … … 2222 2228 * a new function needs to be done to update only one file in the cache 2223 2229 */ 2224 dircache_invalidate(p Conn->file.fullname, pRes, 1);2230 dircache_invalidate(pRes->pdc, pConn->file.fullname, 1); 2225 2231 2226 2232 do {
Note:
See TracChangeset
for help on using the changeset viewer.