Move init into a separate file
This commit is contained in:
+2
-20
@@ -7,6 +7,7 @@
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <stdint.h>
|
||||
#include <malloc.h>
|
||||
#include <linux/fs.h>
|
||||
#include <liburing.h>
|
||||
|
||||
@@ -137,26 +138,7 @@ struct blockstore_operation
|
||||
|
||||
class blockstore;
|
||||
|
||||
class blockstore_init_meta
|
||||
{
|
||||
blockstore *bs;
|
||||
uint8_t *metadata_buffer;
|
||||
uint64_t metadata_read = 0;
|
||||
struct iovec submit_iov;
|
||||
int prev = 0, prev_done = 0, done_len = 0, submitted = 0, done_cnt = 0;
|
||||
public:
|
||||
blockstore_init_meta(blockstore* bs);
|
||||
int read_loop();
|
||||
void handle_entries(struct clean_disk_entry* entries, int count);
|
||||
};
|
||||
|
||||
class blockstore_init_journal
|
||||
{
|
||||
blockstore *bs;
|
||||
public:
|
||||
blockstore_init_journal(blockstore* bs);
|
||||
int read_loop();
|
||||
};
|
||||
#include "blockstore_init.h"
|
||||
|
||||
class blockstore
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user