Properly encode engine flags in thread_data::flags
authorAlberto Faria <afaria@redhat.com>
Tue, 15 Mar 2022 21:06:39 +0000 (21:06 +0000)
committerAlberto Faria <afaria@redhat.com>
Tue, 15 Mar 2022 23:16:05 +0000 (23:16 +0000)
commitcf1f424af7d098e8dce9064c8b0faef0aae9cb34
tree5824052d89036b0c16aaac0e43355902099b40c0
parent1fe261a24794f60bf374cd1852e09ec56997a20a
Properly encode engine flags in thread_data::flags

We have 16 engine flags and an 18-bit shift, so cast engine flags to
unsigned long long before shifting to avoid dropping
FIO_ASYNCIO_SYNC_TRIM and FIO_NO_OFFLOAD.

Also make thread_data::flags unsigned long long to ensure it fits all
flags even when longs are 32 bit, and fix TD_ENG_FLAG_MASK.

Signed-off-by: Alberto Faria <afaria@redhat.com>
fio.h