From dac45f23c3c7d146f7df82047ae7f25abf231ed3 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 12 Mar 2014 13:40:09 -0600 Subject: [PATCH] stat: fixup fio-dump-status file location Don't use /tmp in the actual file name. And kill unused Windows os_get_tmpdir(). Signed-off-by: Jens Axboe --- os/os-windows.h | 5 ----- stat.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/os/os-windows.h b/os/os-windows.h index 49f96068..66036351 100644 --- a/os/os-windows.h +++ b/os/os-windows.h @@ -162,11 +162,6 @@ static inline unsigned long long os_phys_mem(void) return (unsigned long long) pages * (unsigned long long) pagesize; } -static inline void os_get_tmpdir(char *path, int len) -{ - GetTempPath(len, path); -} - static inline int gettid(void) { return GetCurrentThreadId(); diff --git a/stat.c b/stat.c index e43db8f9..f018f33d 100644 --- a/stat.c +++ b/stat.c @@ -1480,7 +1480,7 @@ void show_running_run_stats(void) static int status_interval_init; static struct timeval status_time; -#define FIO_STATUS_FILE "/tmp/fio-dump-status" +#define FIO_STATUS_FILE "fio-dump-status" static int check_status_file(void) { -- 2.25.1