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 @@ -7,6 +7,7 @@ static int initialized;
77static volatile long enabled ;
88static struct hashmap map ;
99static CRITICAL_SECTION mutex ;
10+ static struct trace_key trace_fscache = TRACE_KEY_INIT (FSCACHE );
1011
1112/*
1213 * An entry in the file system cache. Used for both entire directory listings
@@ -192,6 +193,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir)
192193 if (h == INVALID_HANDLE_VALUE ) {
193194 err = GetLastError ();
194195 errno = (err == ERROR_DIRECTORY ) ? ENOTDIR : err_win_to_posix (err );
196+ trace_printf_key (& trace_fscache , "fscache: error(%d) '%.*s'\n" ,
197+ errno , dir -> len , dir -> name );
195198 return NULL ;
196199 }
197200
@@ -377,6 +380,7 @@ int fscache_enable(int enable)
377380 fscache_clear ();
378381 LeaveCriticalSection (& mutex );
379382 }
383+ trace_printf_key (& trace_fscache , "fscache: enable(%d)\n" , enable );
380384 return result ;
381385}
382386
You can’t perform that action at this time.
0 commit comments