Changeset 1003 for branches/client-3.0/src/smbwrp.c
- Timestamp:
- Dec 30, 2016, 9:42:50 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-3.0/src/smbwrp.c
r1001 r1003 957 957 smbwrp_fileinfo wrpfinfo; 958 958 959 //Init cache - don't know number of files so init with 128 960 dircachectx = dircache_write_begin(state, 128); 961 959 962 if (smbXcli_conn_has_async_calls(cli->conn)) { 960 963 /* … … 1075 1078 pathname, 1076 1079 state); 1080 // Also add the entry to the cache. 1081 dircache_write_entry(dircachectx, &wrpfinfo); 1077 1082 1078 1083 if (!NT_STATUS_IS_OK(status)) { … … 1118 1123 status = NT_STATUS_NO_SUCH_FILE; 1119 1124 } 1120 1125 dircache_write_end(dircachectx); 1121 1126 fail: 1122 1127 … … 1148 1153 smbwrp_fileinfo wrpfinfo; 1149 1154 1155 /* Try to get the listing from cache. */ 1156 if (dircache_list_files(fn, state, &num_finfo)) 1157 { 1158 /* Got from cache. */ 1159 return(num_finfo); 1160 } 1161 1150 1162 if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) { 1151 1163 debuglocal(4,"SMB2 detected, calling list_files_smb2()\n"); 1152 1164 return list_files_smb2(cli, mask, attribute, fn, state); 1153 }1154 1155 /* Try to get the listing from cache. */1156 if (dircache_list_files(fn, state, &num_finfo))1157 {1158 /* Got from cache. */1159 return(num_finfo);1160 1165 } 1161 1166
Note:
See TracChangeset
for help on using the changeset viewer.