Ignore:
Timestamp:
Jan 7, 2011, 12:06:57 PM (15 years ago)
Author:
Silvan Scherrer
Message:

samba client 2.1: caching and text improvments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/src/ndpsmb.c

    r508 r514  
    408408
    409409        /* Create a directory cache with expiration time 15 seconds and up to 32 listings cached. */
    410         dircache_create(&pRes->pdc, 10, 32);
     410        dircache_create(&pRes->pdc, 15, 32);
    411411
    412412        return rc;
     
    10881088        debug_printf("NdpSetPathInfo in [%p]\n", pConn);
    10891089
    1090         // delete the dir chache
     1090        // delete the dir cache
    10911091        dircache_invalidate(szPathName, pRes->pdc, 1);
    10921092
     
    19141914        debuglocal(9,"NdpFileClose in [%p] %d <%s>\n", pConn, pConn->file.fd, pConn->file.fd < 0 ? "!null!" : pConn->file.fname);
    19151915
    1916         // delete the dir chache
    1917         dircache_invalidate(pConn->file.fullname, pRes->pdc, 1);
    1918 
    19191916        do {
    19201917                if (pConn->file.fd < 0)
     
    20382035        debuglocal(9,"NdpFileWrite in [%p]\n", pConn);
    20392036
     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
    20402043        do {
    20412044                if (pConn->file.fd < 0)
Note: See TracChangeset for help on using the changeset viewer.