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

bcachefs: Fix reattach_inode() for snapshots



reattach_inode() was broken w.r.t. snapshots - we'd lookup the subvolume
to look up lost+found, but if we're in an interior node snapshot that
didn't make any sense.

Instead, this adds a dirent path for creating in a specific snapshot,
skipping the subvolume; and we also make sure to create lost+found in
the root snapshot, to avoid conflicts with lost+found being created in
overlapping snapshots.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent c558c577
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