stat: fixup fio-dump-status file location
authorJens Axboe <axboe@fb.com>
Wed, 12 Mar 2014 19:40:09 +0000 (13:40 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 12 Mar 2014 19:40:09 +0000 (13:40 -0600)
Don't use /tmp in the actual file name. And kill unused Windows
os_get_tmpdir().

Signed-off-by: Jens Axboe <axboe@fb.com>
os/os-windows.h
stat.c

index 49f96068ff329ba8bc0b2a69c748f3c8495bbd77..66036351e912c76979f06697c7e5d0dab43059d9 100644 (file)
@@ -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 e43db8f9d075431a0d90c04b8d4fd941c05ffaf5..f018f33d029288ce24e224dcab1f7c0e6161a387 100644 (file)
--- 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)
 {