Project

General

Profile

Actions

Feature #1197

open

Use renameat2() to atomically exchange metadata on metadata regenerate

Added by Mathieu Desnoyers about 5 years ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
09/23/2019
Due date:
% Done:

0%

Estimated time:

Description

When using shm-path, a use-case is to expect the sessiond or the system to crash at any point during tracing.

If such a crash occurs while regenerating the metadata, lttng-crash may find a truncated file.

It would be nice if we could generate the new metadata in a ".metadata.new" file while keeping the old file around, and then exchange both files using renameat2().

However, renameat2() appeared in kernel 3.15, so we would have to figure out a fallback.

No data to display

Actions

Also available in: Atom PDF