Add TODO to try fallocate instead of seek and write

This commit is contained in:
2020-07-17 16:36:42 +02:00
parent f6d4bc439c
commit 475f4a59f2
+1
View File
@@ -103,6 +103,7 @@ void BufferBinaryWriter::open_file(const std::string& filename)
/** Setting the buffer file size in advance to try to lower the number of
metadata updates on GPFS. */
{
// TODO: Try instead to use fallocate.
if (lseek(output_file_fd_, MAX_FILE_BYTES, SEEK_SET) < 0) {
stringstream err_msg;