Skip to content

Commit 2578b43

Browse files
feat(bdev): add support for CSAL ftl bdev targets (#67)
At the same time prepare for potential zoned storage enabled CSAL FTLs. CSAL paper reference: https://dl.acm.org/doi/10.1145/3627703.3629566 Signed-off-by: Dennis Maisenbacher <dennis.maisenbacher@wdc.com> Co-authored-by: Indraneel M <Indraneel.Mukherjee@wdc.com>
1 parent d68d9f3 commit 2578b43

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

build.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,18 @@ fn configure_spdk() -> Result<LibraryConfig, Error> {
126126
spdk_path.join("include/spdk/lib"),
127127
spdk_path.join("lib"),
128128
)?;
129+
spdk_lib.add_inc_alt(
130+
spdk_path.join("include/spdk/lib/ftl"),
131+
spdk_path.join("lib/ftl"),
132+
)?;
129133

130134
spdk_lib.find_pkg_config_dirs(&spdk_path)?;
131135

132136
spdk_lib.exclude_lib("spdk_bdev_blobfs");
133-
spdk_lib.exclude_lib("spdk_bdev_ftl");
134137
spdk_lib.exclude_lib("spdk_bdev_gpt");
135138
spdk_lib.exclude_lib("spdk_bdev_passthru");
136139
spdk_lib.exclude_lib("spdk_bdev_raid");
137140
spdk_lib.exclude_lib("spdk_bdev_split");
138-
spdk_lib.exclude_lib("spdk_bdev_zone_block");
139141
spdk_lib.exclude_lib("spdk_event_nvmf");
140142
spdk_lib.exclude_lib("spdk_sock_uring");
141143
spdk_lib.exclude_lib("spdk_ut_mock");
@@ -167,12 +169,14 @@ fn configure_spdk() -> Result<LibraryConfig, Error> {
167169
// "spdk_bdev_crypto",
168170
"spdk_bdev_delay",
169171
"spdk_bdev_error",
172+
"spdk_bdev_ftl",
170173
"spdk_bdev_lvol",
171174
"spdk_bdev_malloc",
172175
"spdk_bdev_null",
173176
"spdk_bdev_nvme",
174177
"spdk_bdev_uring",
175178
"spdk_bdev_virtio",
179+
"spdk_bdev_zone_block",
176180
"spdk_env_dpdk",
177181
"spdk_env_dpdk_rpc",
178182
"spdk_event",

build_scripts/build_spdk.sh

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ export MSG_NC=$RESET_COLOR
4444
CONFIGURE_ARGS=(
4545
"--without-shared"
4646
"--with-uring"
47-
"--without-uring-zns"
4847
"--without-nvme-cuse"
4948
"--without-fuse"
5049
"--disable-unit-tests"

wrapper.h

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <bdev/aio/bdev_aio.h>
55
#include <bdev/crypto/vbdev_crypto.h>
66
#include <bdev/error/vbdev_error.h>
7+
#include <bdev/ftl/bdev_ftl.h>
78
#include <bdev/lvol/vbdev_lvol.h>
89
#include <bdev/nvme/bdev_nvme.h>
910
#include <bdev/malloc/bdev_malloc.h>

0 commit comments

Comments
 (0)