fio: fix some struct alignment issues
authorSitsofe Wheeler <sitsofe@yahoo.com>
Sat, 20 May 2017 17:41:35 +0000 (18:41 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Mon, 22 May 2017 16:01:09 +0000 (17:01 +0100)
commitdbf285f75b4a447390a94a45b4c6091ac0c9f604
tree01f76a5e8d48b217491d7d65108828cda6ee0637
parentb443ae44cb50b53ad38644294e6bda89f3af58d8
fio: fix some struct alignment issues

Fix unaligned/misaligned accesses related to struct thread_stat and
struct jobs_eta seen when running a build produced by
CC=~/clang-3.9/build/bin/clang ./configure --disable-optimizations \
   --extra-cflags="-D__compiler_offsetof=__builtin_offsetof \
   -fsanitize=undefined"

and add to the compile time asserts to make these problems more visible.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
fio.h
libfio.c
stat.h