Changeset 497


Ignore:
Timestamp:
Dec 13, 2010, 4:05:51 PM (15 years ago)
Author:
Silvan Scherrer
Message:

samba client: caching

Location:
branches/client-2.0/src
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/client-2.0/src/Makefile.kmk

    r442 r497  
    3232        printf.c \
    3333        util.c \
     34
    3435        smbwrp.c
    3536
  • branches/client-2.0/src/debug.c

    r439 r497  
    5151        struct stat filestat;
    5252
     53
     54
     55
     56
     57
     58
    5359        // if the file ndpsmb.dbg is around we write a logfile
    5460        if (!debugfile[0])
     
    8086        } /* endif */
    8187
    82         if (!debuglvl(level))
    83         {
    84                 return;
    85         }
    8688        do
    8789        {
  • branches/client-2.0/src/help/ndpsmb.ipf

    r493 r497  
    138138:li.:link reftype=hd res=001.Version 1.0:elink.
    139139:li.:link reftype=hd res=002.Version 1.5.0:elink.
     140
    140141:eul
    141142:h2 res=001.Version 1.0
     
    258259:eul.
    259260:eul.
     261
     262
     263
     264
     265
     266
     267
    260268.******************************************************
    261269:h1.Credit
     
    267275:li.Alex Taylor (aka AlexT)
    268276:li.Nikolay Kolosov (aka nickk)
     277
    269278:li.and all we missed
    270279:eul.
  • branches/client-2.0/src/help/ndpsmb_de.ipf

    r493 r497  
    141141:li.:link reftype=hd res=001.Version 1.0:elink.
    142142:li.:link reftype=hd res=002.Version 1.5.0:elink.
     143
    143144:eul
    144145:h2 res=001.Version 1.0
     
    263264:eul.
    264265:eul.
     266
     267
     268
     269
     270
     271
     272
    265273.******************************************************
    266274:h1.Credit
     
    272280:li.Alex Taylor (aka AlexT)
    273281:li.Nikolay Kolosov (aka nickk)
     282
    274283:li.und alle&comma. die wir vergessen haben!
    275284:eul.
  • branches/client-2.0/src/help/ndpsmb_fr.ipf

    r493 r497  
    206206:li.:link reftype=hd res=001.Version 1.0:elink.
    207207:li.:link reftype=hd res=002.Version 1.5.0:elink.
     208
    208209:eul.
    209210:h2 res=001.Version 1.0
     
    348349:eul.
    349350:eul.
     351
     352
     353
     354
     355
     356
     357
    350358:p.
    351359.******************************************************
     
    360368:li.Alex Taylor (alias AlexT)
    361369:li.Nikolay Kolosov (alias nickk)
     370
    362371:li.et tous ceux que nous avons pu oublier
    363372:eul.
  • branches/client-2.0/src/help/readme.txt

    r493 r497  
    254254   - Fix timestamp problem
    255255
     256
     257
  • branches/client-2.0/src/help/readme_de.txt

    r493 r497  
    265265   - Zeitzonenproblem behoben
    266266
     267
     268
     269
  • branches/client-2.0/src/help/readme_fr.txt

    r493 r497  
    326326   - Fix timestamp problem
    327327
     328
     329
     330
    328331
    329332Traduction fran‡aise : Guillaume Gay <[email protected]>
  • branches/client-2.0/src/ndpsmb.c

    r493 r497  
    224224
    225225
    226 static PLUGINHELPERTABLE2L *ph;
     226PLUGINHELPERTABLE2L *ph;
    227227static int ifL;
    228228
     
    397397        pRes->krb5support = 0;
    398398#endif
     399
    399400
    400401        t = 0, q = NULL;
     
    503504                }
    504505        }
     506
     507
     508
    505509
    506510        return rc;
     
    727731{
    728732        Resource *pRes = (Resource *)resource;
     733
    729734        MemSet(&pRes->srv, 0, sizeof(pRes->srv));
    730735        free(pRes);
     
    963968
    964969                do {
     970
     971
     972
     973
     974
     975
     976
     977
     978
     979
     980
     981
    965982
    966983                        rc = pathparser(pRes, pConn, szPath, path);
     
    10921109                strcpy( state.dir_mask, mask);
    10931110                strcpy( state.mask, path);
     1111
     1112
     1113
     1114
     1115
     1116
     1117
     1118
     1119
     1120
     1121
     1122
     1123
    10941124                p = getlastslash(state.mask);
    10951125                if (p)
     
    11021132                        strcpy(state.mask, "\\*");
    11031133                }
     1134
     1135
    11041136                rc = smbwrp_filelist( &pRes->srv, pConn->cli, &state);
    11051137                // we need to handle reconnection also here, because NdpQueryPathInfo
     
    14681500        debuglocal(9,"NdpForceDelete in\n");
    14691501
     1502
     1503
    14701504        do {
    14711505                rc = pathparser(pRes, pConn, szFile, path);
     
    14921526        debuglocal(9,"NdpCreateDir in\n");
    14931527
     1528
     1529
    14941530        do {
    14951531                rc = pathparser(pRes, pConn, szDirName, path);
     
    15161552        debuglocal(9,"NdpDeleteDir in\n");
    15171553
     1554
     1555
    15181556        do {
    15191557                rc = pathparser(pRes, pConn, szDir, path);
     
    15411579
    15421580        debuglocal(9,"NdpMove in from <%s> to <%s>\n", szSrc, szDst);
     1581
     1582
     1583
    15431584
    15441585        do
     
    15951636        debuglocal(9,"smbopen in %d\n", pConn->file.fd);
    15961637
     1638
     1639
     1640
     1641
    15971642        do {
    15981643                if (pConn->file.fd > 0)
  • branches/client-2.0/src/smbwrp.c

    r493 r497  
    10811081        finfo->ctime = def_finfo.ctime_ts.tv_sec;
    10821082        strncpy(finfo->fname, def_finfo.name, sizeof(finfo->fname) - 1);
    1083         debuglocal(9,"fname %s (serverzone %d, level %d)\n",finfo->fname, cli->serverzone, level);
    10841083       
    10851084        switch (level) {
     
    12401239                pstrcpy(mask,Mask);
    12411240
     1241
     1242
     1243
     1244
     1245
     1246
     1247
    12421248        while (ff_eos == 0) {
    12431249                loop_count++;
     
    14251431                total_received = -1;
    14261432        } else {
     1433
     1434
    14271435                /* no connection problem.  let user function add each entry */
    14281436                for (p=dirlist,i=0;i<total_received;i++) {
     
    14301438                                                     &finfo,NULL,NULL,NULL);
    14311439                        fn( mnt,&finfo, Mask, state );
     1440
     1441
     1442
    14321443                }
     1444
     1445
    14331446        }
    14341447
  • branches/client-2.0/src/smbwrp.h

    r151 r497  
    125125#endif
    126126
     127
     128
    127129typedef struct _Resource
    128130{
     
    133135        int easupport;
    134136        int krb5support;
     137
    135138} Resource;
    136139
     
    157160        void *plist;
    158161        unsigned long ulAttribute;
     162
    159163} filelist_state;
    160164
     
    186190int _System smbwrp_dskattr(cli_state * cli, FSALLOCATE *pfsa);
    187191
     192
     193
     194
     195
     196
     197
     198
     199
     200
     201
     202
     203
     204
     205
     206
     207
     208
     209
     210
     211
     212
     213
     214
     215
     216
     217
     218
     219
     220
     221
     222
    188223#endif /* _SMBWRP_H */
Note: See TracChangeset for help on using the changeset viewer.