Split blockstore implementation and interface header
This commit is contained in:
+3
-3
@@ -1,15 +1,15 @@
|
||||
#include <iostream>
|
||||
#include <malloc.h>
|
||||
#include "timerfd_interval.h"
|
||||
#include "blockstore.h"
|
||||
|
||||
int main(int narg, char *args[])
|
||||
{
|
||||
spp::sparse_hash_map<std::string, std::string> config;
|
||||
blockstore_config_t config;
|
||||
config["meta_device"] = "./test_meta.bin";
|
||||
config["journal_device"] = "./test_journal.bin";
|
||||
config["data_device"] = "./test_data.bin";
|
||||
ring_loop_t *ringloop = new ring_loop_t(512);
|
||||
blockstore *bs = new blockstore(config, ringloop);
|
||||
blockstore_t *bs = new blockstore_t(config, ringloop);
|
||||
timerfd_interval tick_tfd(ringloop, 1, []()
|
||||
{
|
||||
printf("tick 1s\n");
|
||||
|
||||
Reference in New Issue
Block a user