From cfe80ff9045f33375f11a285098fb15ce214372a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 16 Aug 2019 23:13:42 +0200 Subject: Minor interface change to data writer Signed-off-by: David Oberhollenzer --- include/data_writer.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/data_writer.h b/include/data_writer.h index f384ce7..bd7532d 100644 --- a/include/data_writer.h +++ b/include/data_writer.h @@ -51,11 +51,12 @@ void data_writer_destroy(data_writer_t *data); int data_writer_write_fragment_table(data_writer_t *data); /* - Compress and flush the current fragment buffer even if it is not full yet. + Wait for everything to be written to disk. This also forces a currently + pending fragment block to be compressed and wrtten. Returns 0 on success, prints errors to stderr. */ -int data_writer_flush_fragments(data_writer_t *data); +int data_writer_sync(data_writer_t *data); /* Read data from the given file descriptor, partition it into blocks and -- cgit v1.2.3