Changeset 499 for trunk/client/src/smbwrp.c
- Timestamp:
- Dec 13, 2010, 5:10:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/src/smbwrp.c
r494 r499 1105 1105 1106 1106 ZERO_STRUCTP(finfo); 1107 debuglocal(9,"fname %s (serverzone %d, level %d)\n",finfo->fname, cli->serverzone, level);1108 1107 1109 1108 switch (level) { … … 1303 1302 return -1; 1304 1303 } 1304 1305 /* Try to get the listing from cache. */ 1306 if (dircache_list_files(fn, state, &total_received)) 1307 { 1308 /* Got from cache. */ 1309 return(total_received); 1310 } 1305 1311 1306 1312 while (ff_eos == 0) { … … 1514 1520 total_received = -1; 1515 1521 } else { 1522 void *dircachectx = dircache_write_begin(state, total_received); 1523 1516 1524 /* no connection problem. let user function add each entry */ 1517 1525 rdata_end = dirlist + dirlist_len; … … 1525 1533 } 1526 1534 fn( mnt,&finfo, Mask, state ); 1535 1536 /* Also add the entry to the cache. */ 1537 dircache_write_entry(dircachectx, &finfo); 1527 1538 } 1539 1540 dircache_write_end(dircachectx); 1541 1528 1542 } 1529 1543
Note:
See TracChangeset
for help on using the changeset viewer.