Fix typo in alignment check
It checks percentile_list twice and forgets latency_percentile
in the thread_options_pack structure. Add alignment after the
32-bit sync_file_range to make it align properly.
Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/libfio.c b/libfio.c
index 523cc36..9ed802a 100644
--- a/libfio.c
+++ b/libfio.c
@@ -307,7 +307,7 @@
compiletime_assert((offsetof(struct thread_options_pack, zipf_theta) % 8) == 0, "zipf_theta");
compiletime_assert((offsetof(struct thread_options_pack, pareto_h) % 8) == 0, "pareto_h");
compiletime_assert((offsetof(struct thread_options_pack, percentile_list) % 8) == 0, "percentile_list");
- compiletime_assert((offsetof(struct thread_options_pack, percentile_list) % 8) == 0, "latency_percentile");
+ compiletime_assert((offsetof(struct thread_options_pack, latency_percentile) % 8) == 0, "latency_percentile");
if (endian_check()) {
log_err("fio: endianness settings appear wrong.\n");
diff --git a/thread_options.h b/thread_options.h
index 5c9910a..ecf4e47 100644
--- a/thread_options.h
+++ b/thread_options.h
@@ -477,6 +477,7 @@
uint64_t number_ios;
uint32_t sync_file_range;
+ uint32_t pad2;
uint64_t latency_target;
uint64_t latency_window;