bcachefs: Per subvolume lost+found
authorKent Overstreet <kent.overstreet@gmail.com>
Tue, 20 Apr 2021 03:31:40 +0000 (23:31 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:12 +0000 (17:09 -0400)
commit81ed9ce3671125ee384c1a205747a853ca2a1739
treedff15b4cdd1cb256de591ec04385e2225e293bd4
parentb9e1adf57988fb4632b86c43fde1551a24299b86
bcachefs: Per subvolume lost+found

On existing filesystems, we have a single global lost+found. Introducing
subvolumes means we need to introduce per subvolume lost+found
directories, because inodes are added to lost+found by their inode
number, and inode numbers are now only unique within a subvolume.

This patch adds support to fsck for per subvolume lost+found.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/fsck.c