Commit b9004e85 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix a "no journal entries found" bug



On startup, we need to ensure the first journal entry written is a flush
write: after a clean shutdown we generally don't read the journal, which
means we might be overwriting whatever was there previously, and there
must always be at least one flush entry in the journal or recovery will
fail.

Found by fstests generic/388.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e0de429a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment