mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-04 11:14:15 +02:00
Add TODO to try fallocate instead of seek and write
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user