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
@@ -205,6 +206,8 @@ static struct fsentry *fsentry_create_list(const struct fsentry *dir)
205
206
if (h == INVALID_HANDLE_VALUE ) {
206
207
err = GetLastError ();
207
208
errno = (err == ERROR_DIRECTORY ) ? ENOTDIR : err_win_to_posix (err );
209
+ trace_printf_key (& trace_fscache , "fscache: error(%d) '%s'\n" ,
210
+ errno , dir -> dirent .d_name );
208
211
return NULL ;
209
212
}
210
213
@@ -390,6 +393,7 @@ int fscache_enable(int enable)
390
393
fscache_clear ();
391
394
LeaveCriticalSection (& mutex );
392
395
}
396
+ trace_printf_key (& trace_fscache , "fscache: enable(%d)\n" , enable );
393
397
return result ;
394
398
}
395
399
You can’t perform that action at this time.
0 commit comments