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

samba client 2.0: caching and text improvments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/client-2.0/src/ndpsmb.c

    r510 r513  
    506506
    507507        /* Create a directory cache with expiration time 15 seconds and up to 32 listings cached. */
    508         dircache_create(&pRes->pdc, 10, 32);
     508        dircache_create(&pRes->pdc, 15, 32);
    509509
    510510        return rc;
     
    20142014        debuglocal(9,"NdpFileClose in [%p] %d <%s>\n", pConn, pConn->file.fd, pConn->file.fd < 0 ? "!null!" : pConn->file.fname);
    20152015
    2016         // delete the dir cache
    2017         dircache_invalidate(pConn->file.fullname, pRes->pdc, 1);
    2018 
    20192016        do {
    20202017                if (pConn->file.fd < 0)
     
    21402137        debuglocal(9,"NdpFileWrite in [%p]\n", pConn);
    21412138
     2139        /* delete the dir cache
     2140        this was moved from NdpFileClose() becasue if there are a lot files in the tree all are reread
     2141        the problem when moved to here is, that last accessed time is not refreshed
     2142        if this is needed, a new function needs to be done to update only one file in the cache */
     2143        dircache_invalidate(pConn->file.fullname, pRes->pdc, 1);
     2144
    21422145        do {
    21432146                if (pConn->file.fd < 0)
Note: See TracChangeset for help on using the changeset viewer.