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;
7
7
static volatile long enabled ;
8
8
static struct hashmap map ;
9
9
static CRITICAL_SECTION mutex ;
10
+ static struct trace_key trace_fscache = TRACE_KEY_INIT (FSCACHE );
10
11
11
12
/*
12
13
* An entry in the file system cache. Used for both entire directory listings
@@ -200,6 +201,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir)
200
201
if (h == INVALID_HANDLE_VALUE ) {
201
202
err = GetLastError ();
202
203
errno = (err == ERROR_DIRECTORY ) ? ENOTDIR : err_win_to_posix (err );
204
+ trace_printf_key (& trace_fscache , "fscache: error(%d) '%s'\n" ,
205
+ errno , dir -> dirent .d_name );
203
206
return NULL ;
204
207
}
205
208
@@ -385,6 +388,7 @@ int fscache_enable(int enable)
385
388
fscache_clear ();
386
389
LeaveCriticalSection (& mutex );
387
390
}
391
+ trace_printf_key (& trace_fscache , "fscache: enable(%d)\n" , enable );
388
392
return result ;
389
393
}
390
394
You can’t perform that action at this time.
0 commit comments