Skip to main content

Module journal

Module journal 

Source
Expand description

Transactional journal for file relocation operations.

The journal records every file operation (rename, copy, move) performed during a match batch so that the action can be reliably resumed or rolled back if the process is interrupted. Entries are persisted to disk using an atomic write-then-rename strategy to guarantee that the on-disk journal is never left in a partially written state.

Structs§

JournalData
Persistent journal data describing a single match batch.
JournalEntry
A single recorded file operation within a journal batch.

Enums§

JournalEntryStatus
Status of an individual journal entry.
JournalOperationType
The type of file system operation described by a journal entry.

Functions§

journal_path
Resolve the canonical path to the match journal file.
lock_path
Resolve the canonical path to the match batch lock file.