File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44#include "fscache.h"
55#include "../../dir.h"
66#include "../../abspath.h"
7+ #include "../../trace.h"
78
89static int initialized ;
910static volatile long enabled ;
1011static struct hashmap map ;
1112static CRITICAL_SECTION mutex ;
13+ static struct trace_key trace_fscache = TRACE_KEY_INIT (FSCACHE );
1214
1315/*
1416 * An entry in the file system cache. Used for both entire directory listings
@@ -214,6 +216,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir)
214216 if (h == INVALID_HANDLE_VALUE ) {
215217 err = GetLastError ();
216218 errno = (err == ERROR_DIRECTORY ) ? ENOTDIR : err_win_to_posix (err );
219+ trace_printf_key (& trace_fscache , "fscache: error(%d) '%s'\n" ,
220+ errno , dir -> dirent .d_name );
217221 return NULL ;
218222 }
219223
@@ -399,6 +403,7 @@ int fscache_enable(int enable)
399403 fscache_clear ();
400404 LeaveCriticalSection (& mutex );
401405 }
406+ trace_printf_key (& trace_fscache , "fscache: enable(%d)\n" , enable );
402407 return result ;
403408}
404409
You can’t perform that action at this time.
0 commit comments