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

bcachefs: Don't rely on snapshot_tree.master_subvol for reattaching



Previously, fsck used the snapshot tree's master subvol for finding the
root inode number - but the master subvol might have been deleting, and
setting a new one should be a user operation; meaning we can't rely on
it existing.

Fortunately, for finding the root inode number in a tree of snapshots,
finding any associated subvolume works.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 45414083
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment