File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ static int initialized;
88static volatile long enabled ;
99static struct hashmap map ;
1010static CRITICAL_SECTION mutex ;
11+ static struct trace_key trace_fscache = TRACE_KEY_INIT (FSCACHE );
1112
1213/*
1314 * An entry in the file system cache. Used for both entire directory listings
@@ -206,6 +207,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir)
206207 if (h == INVALID_HANDLE_VALUE ) {
207208 err = GetLastError ();
208209 errno = (err == ERROR_DIRECTORY ) ? ENOTDIR : err_win_to_posix (err );
210+ trace_printf_key (& trace_fscache , "fscache: error(%d) '%s'\n" ,
211+ errno , dir -> dirent .d_name );
209212 return NULL ;
210213 }
211214
@@ -391,6 +394,7 @@ int fscache_enable(int enable)
391394 fscache_clear ();
392395 LeaveCriticalSection (& mutex );
393396 }
397+ trace_printf_key (& trace_fscache , "fscache: enable(%d)\n" , enable );
394398 return result ;
395399}
396400
You can’t perform that action at this time.
0 commit comments