From: Jens Axboe Date: Wed, 12 Mar 2014 19:40:09 +0000 (-0600) Subject: stat: fixup fio-dump-status file location X-Git-Tag: fio-2.1.7~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=dac45f23c3c7d146f7df82047ae7f25abf231ed3;p=fio.git 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 --- 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) {