File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 4
4
#include "fscache.h"
5
5
#include "../../dir.h"
6
6
#include "../../abspath.h"
7
+ #include "../../trace.h"
7
8
8
9
static int initialized ;
9
10
static volatile long enabled ;
10
11
static struct hashmap map ;
11
12
static CRITICAL_SECTION mutex ;
13
+ static struct trace_key trace_fscache = TRACE_KEY_INIT (FSCACHE );
12
14
13
15
/*
14
16
* An entry in the file system cache. Used for both entire directory listings
@@ -212,6 +214,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir)
212
214
if (h == INVALID_HANDLE_VALUE ) {
213
215
err = GetLastError ();
214
216
errno = (err == ERROR_DIRECTORY ) ? ENOTDIR : err_win_to_posix (err );
217
+ trace_printf_key (& trace_fscache , "fscache: error(%d) '%s'\n" ,
218
+ errno , dir -> dirent .d_name );
215
219
return NULL ;
216
220
}
217
221
@@ -397,6 +401,7 @@ int fscache_enable(int enable)
397
401
fscache_clear ();
398
402
LeaveCriticalSection (& mutex );
399
403
}
404
+ trace_printf_key (& trace_fscache , "fscache: enable(%d)\n" , enable );
400
405
return result ;
401
406
}
402
407
You can’t perform that action at this time.
0 commit comments