diff --git a/build.rs b/build.rs index 39f16cb..ac88727 100644 --- a/build.rs +++ b/build.rs @@ -126,16 +126,18 @@ fn configure_spdk() -> Result { spdk_path.join("include/spdk/lib"), spdk_path.join("lib"), )?; + spdk_lib.add_inc_alt( + spdk_path.join("include/spdk/lib/ftl"), + spdk_path.join("lib/ftl"), + )?; spdk_lib.find_pkg_config_dirs(&spdk_path)?; spdk_lib.exclude_lib("spdk_bdev_blobfs"); - spdk_lib.exclude_lib("spdk_bdev_ftl"); spdk_lib.exclude_lib("spdk_bdev_gpt"); spdk_lib.exclude_lib("spdk_bdev_passthru"); spdk_lib.exclude_lib("spdk_bdev_raid"); spdk_lib.exclude_lib("spdk_bdev_split"); - spdk_lib.exclude_lib("spdk_bdev_zone_block"); spdk_lib.exclude_lib("spdk_event_nvmf"); spdk_lib.exclude_lib("spdk_sock_uring"); spdk_lib.exclude_lib("spdk_ut_mock"); @@ -167,12 +169,14 @@ fn configure_spdk() -> Result { // "spdk_bdev_crypto", "spdk_bdev_delay", "spdk_bdev_error", + "spdk_bdev_ftl", "spdk_bdev_lvol", "spdk_bdev_malloc", "spdk_bdev_null", "spdk_bdev_nvme", "spdk_bdev_uring", "spdk_bdev_virtio", + "spdk_bdev_zone_block", "spdk_env_dpdk", "spdk_env_dpdk_rpc", "spdk_event", diff --git a/build_scripts/build_spdk.sh b/build_scripts/build_spdk.sh index 679e15f..bd7332c 100755 --- a/build_scripts/build_spdk.sh +++ b/build_scripts/build_spdk.sh @@ -44,7 +44,6 @@ export MSG_NC=$RESET_COLOR CONFIGURE_ARGS=( "--without-shared" "--with-uring" - "--without-uring-zns" "--without-nvme-cuse" "--without-fuse" "--disable-unit-tests" diff --git a/wrapper.h b/wrapper.h index 4318a64..2e76f5a 100644 --- a/wrapper.h +++ b/wrapper.h @@ -4,6 +4,7 @@ #include #include #include +#include #include #include #include