Fix: sync buffer file metadata on buffer allocation
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Aug 2017 15:17:48 +0000 (08:17 -0700)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Aug 2017 15:23:55 +0000 (08:23 -0700)
commit61bc5eaf3e18e57b5e04d80124827b88e0825a18
treec4c48bd9bf20849d5acd2415d832e894e168b52b
parent769bcdbb67ab8b4a800020d54728d2a238475320
Fix: sync buffer file metadata on buffer allocation

Synchronizing the file metadata on disk after zeroing the whole file (on
buffer allocation) will make the crash extraction feature (--shm-path
create option) more robust. It ensures the content of the file metadata
backing the buffers does not have to be updated while tracing into the
memory map. Therefore, the on-disk metadata will never be out of sync at
the point where a system crash occurs.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/shm.c
This page took 0.02467 seconds and 4 git commands to generate.