Allow to disable zero fill

This commit is contained in:
Vitaliy Filippov
2020-01-06 21:02:15 +03:00
parent bf3eecc159
commit ba23824561
3 changed files with 14 additions and 4 deletions
+5
View File
@@ -195,7 +195,12 @@ class blockstore_impl_t
bool readonly = false;
// FIXME: separate flags for data, metadata and journal
// It is safe to disable fsync() if drive write cache is writethrough
bool disable_fsync = false;
// It is safe to disable zero fill if drive is zeroed before formatting.
// For example, with TRIM and Deterministic Read Zeroes after TRIM.
// FIXME: OP_DELETE should trim/zero out the block.
bool zerofill_enabled = false;
bool inmemory_meta = false;
void *metadata_buffer = NULL;