From: Vincent Fu Date: Mon, 20 Feb 2023 13:28:15 +0000 (-0500) Subject: configure: restore dev-dax and libpmem X-Git-Tag: fio-3.34~17 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=7a3a166c6c43e45de1c8085254fbdd011c572f05;p=fio.git configure: restore dev-dax and libpmem The commit removing pmemblk inadvertently removed dev-dax and libpmem ioengines as well. Tested-by: Yi Zhang yi.zhang@redhat.com Fixes: 04c1cdc4c108c6537681ab7c50daaed6d2fb4c93 ("pmemblk: remove pmemblk engine") Fixes: https://github.com/axboe/fio/issues/1523 Signed-off-by: Vincent Fu --- diff --git a/configure b/configure index 0d02bce8..45d10a31 100755 --- a/configure +++ b/configure @@ -2228,6 +2228,14 @@ if compile_prog "" "-lpmem2" "libpmem2"; then fi print_config "libpmem2" "$libpmem2" +# Choose libpmem-based ioengines +if test "$libpmem" = "yes" && test "$disable_pmem" = "no"; then + devdax="yes" + if test "$libpmem1_5" = "yes"; then + pmem="yes" + fi +fi + ########################################## # Report whether dev-dax engine is enabled print_config "PMDK dev-dax engine" "$devdax"