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:24:02 +0000 (08:24 -0700)
commit1e88ac269f04995e989f7fda1eb93e0c7f2ed600
treee2de289a7dac3d578bc0de96989f6bd939793ea0
parent36b160dcdb607351e6c9dcabdf9659a56da4e804
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.025636 seconds and 4 git commands to generate.