Changeset 518 for branches/client-2.0/src/ndpsmb.c
- Timestamp:
- Jan 11, 2011, 10:55:35 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-2.0/src/ndpsmb.c
r513 r518 211 211 {ND_PROP_STRING, 0, "SPASSWORD", ""}, 212 212 {ND_PROP_STRING, 0, "MASTER", "WORKGROUP"}, 213 { ND_PROP_ULONG, 0, "MASTERTYPE", "1"}, 214 { ND_PROP_ULONG, 0, "EASUPPORT", "1"}, 213 {ND_PROP_ULONG, 0, "MASTERTYPE", "1"}, 214 {ND_PROP_ULONG, 0, "EASUPPORT", "1"}, 215 {ND_PROP_ULONG, 0, "CTO", "10"}, 216 {ND_PROP_ULONG, 0, "CLD", "32"}, 215 217 {ND_PROP_STRING, 0, NULL, NULL} 216 218 }; … … 505 507 } 506 508 507 /* Create a directory cache with expiration time 15 seconds and up to 32 listings cached. */ 508 dircache_create(&pRes->pdc, 15, 32); 509 t = 0; 510 rc = ph->fsphQueryUlongProperty (properties, "CTO", &t); 511 if (!rc) 512 { 513 if (t > 600) 514 { 515 rc = ERROR_INVALID_PARAMETER; 516 } 517 else 518 { 519 pRes->cachetimeout = t; 520 } 521 } 522 523 t = 0; 524 rc = ph->fsphQueryUlongProperty (properties, "CLD", &t); 525 if (!rc) 526 { 527 if (t > 96) 528 { 529 rc = ERROR_INVALID_PARAMETER; 530 } 531 else 532 { 533 pRes->cachedepth = t; 534 } 535 } 536 537 /* 538 * Create a directory cache with expiration time and cache listings 539 * the above values come from the gui. default: timeout 10; listings: 32 540 */ 541 dircache_create(&pRes->pdc, pRes->cachetimeout, pRes->cachedepth); 509 542 510 543 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.