Extract alignments to options

This commit is contained in:
Vitaliy Filippov
2020-01-16 00:54:25 +03:00
parent 57ecbb2cda
commit 43f6cfeb73
16 changed files with 274 additions and 263 deletions
+4 -3
View File
@@ -122,9 +122,10 @@ struct journal_t
bool inmemory = false;
void *buffer = NULL;
uint64_t block_size = 512;
uint64_t offset, len;
uint64_t next_free = JOURNAL_BLOCK_SIZE;
uint64_t used_start = JOURNAL_BLOCK_SIZE;
uint64_t next_free = 0;
uint64_t used_start = 0;
uint32_t crc32_last = 0;
// Current sector(s) used for writing
@@ -132,7 +133,7 @@ struct journal_t
journal_sector_info_t *sector_info = NULL;
uint64_t sector_count;
int cur_sector = 0;
int in_sector_pos = JOURNAL_BLOCK_SIZE; // no free space because sector is initially unmapped
int in_sector_pos = 0;
// Used sector map
// May use ~ 80 MB per 1 GB of used journal space in the worst case