From 11e955e32698870b9da0414c778346f7377a8119 Mon Sep 17 00:00:00 2001 From: Vincent Fu Date: Tue, 6 Dec 2016 13:11:09 -0500 Subject: [PATCH] steadystate: fix alignment in stat.h This was not problematic in my Linux and OSX testing, but Windows clients did not successfully receive thread_stat without this padding. --- stat.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/stat.h b/stat.h index 0a7bab18..b145b5ee 100644 --- a/stat.h +++ b/stat.h @@ -198,10 +198,10 @@ struct thread_stat { */ union { uint16_t continue_on_error; - uint64_t pad2; + uint32_t pad2; }; - uint64_t total_err_count; uint32_t first_error; + uint64_t total_err_count; uint64_t nr_block_infos; uint32_t block_infos[MAX_NR_BLOCK_INFOS]; @@ -210,6 +210,7 @@ struct thread_stat { uint32_t unit_base; uint32_t latency_depth; + uint32_t pad3; uint64_t latency_target; fio_fp64_t latency_percentile; uint64_t latency_window; @@ -225,12 +226,12 @@ struct thread_stat { union { uint64_t *ss_iops_data; - uint64_t pad3; + uint64_t pad4; }; union { uint64_t *ss_bw_data; - uint64_t pad4; + uint64_t pad5; }; } __attribute__((packed)); -- 2.25.1