engines/libpmem: adjust for PMDK >=1.5 usage
authorŁukasz Stolarczuk <lukasz.stolarczuk@intel.com>
Fri, 17 Jul 2020 13:14:55 +0000 (15:14 +0200)
committerŁukasz Stolarczuk <lukasz.stolarczuk@intel.com>
Fri, 21 Aug 2020 12:14:34 +0000 (14:14 +0200)
commit67719e138e1cd3fd54bfe36e111e3643e2e26d7d
tree9f8d003ccdea4de3f3963a379141b6c0e0c73650
parente711df54082b5d2d739e9ee3e46a2bc23b1b3c7c
engines/libpmem: adjust for PMDK >=1.5 usage

- libpmem engine adjusted to take full advantage of new PMDK versions,
- code redundancy cleaned (some code was copy-pasted from PMDK),
- libpmem example adjusted.

Behavior of direct and sync parameters changed:
- sync=1 means that pmem_drain() is executed for each write operation,
- depends on direct option, flags are set for pmem_memcpy() call:
  - direct=1 - PMEM_F_MEM_NONTEMPORAL,
  - direct=0 - PMEM_F_MEM_TEMPORAL.
configure
engines/libpmem.c
examples/libpmem.fio