Port everything to ring_loop
This commit is contained in:
+5
-5
@@ -5,12 +5,12 @@ class blockstore_init_meta
|
||||
blockstore *bs;
|
||||
uint8_t *metadata_buffer = NULL;
|
||||
uint64_t metadata_read = 0;
|
||||
struct iovec submit_iov;
|
||||
int prev = 0, prev_done = 0, done_len = 0, submitted = 0, done_cnt = 0;
|
||||
void handle_entries(struct clean_disk_entry* entries, int count);
|
||||
public:
|
||||
blockstore_init_meta(blockstore* bs);
|
||||
int read_loop();
|
||||
blockstore_init_meta(blockstore *bs);
|
||||
void handle_event(ring_data_t *data);
|
||||
int loop();
|
||||
};
|
||||
|
||||
class blockstore_init_journal
|
||||
@@ -19,7 +19,6 @@ class blockstore_init_journal
|
||||
uint8_t *journal_buffer = NULL;
|
||||
int step = 0;
|
||||
uint32_t crc32_last = 0;
|
||||
struct iovec submit_iov;
|
||||
uint64_t done_pos = 0, journal_pos = 0;
|
||||
uint64_t cur_skip = 0;
|
||||
bool wrapped = false;
|
||||
@@ -27,5 +26,6 @@ class blockstore_init_journal
|
||||
int handle_journal_part(void *buf, uint64_t len);
|
||||
public:
|
||||
blockstore_init_journal(blockstore* bs);
|
||||
int read_loop();
|
||||
void handle_event(ring_data_t *data);
|
||||
int loop();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user