Use an interface instead of explicit blockstore_t wrapper

This commit is contained in:
Vitaliy Filippov
2025-11-23 01:48:44 +03:00
parent 1badc6ad13
commit 8ee7058ec8
10 changed files with 50 additions and 121 deletions
+2 -2
View File
@@ -32,7 +32,7 @@
struct bs_data
{
blockstore_t *bs;
blockstore_i *bs;
epoll_manager_t *epmgr;
ring_loop_t *ringloop;
/* The list of completed io_u structs. */
@@ -162,7 +162,7 @@ static int bs_init(struct thread_data *td)
}
bsd->ringloop = new ring_loop_t(RINGLOOP_DEFAULT_SIZE);
bsd->epmgr = new epoll_manager_t(bsd->ringloop);
bsd->bs = new blockstore_t(config, bsd->ringloop, bsd->epmgr->tfd);
bsd->bs = blockstore_i::create(config, bsd->ringloop, bsd->epmgr->tfd);
bsd->imm = config.find("immediate_commit") == config.end() ||
config["immediate_commit"] == "all";
while (1)