• Kent Overstreet's avatar
    bcachefs: Add support for dirents that point to subvolumes · b9e1adf5
    Kent Overstreet authored
    Dirents currently always point to inodes. Subvolumes add a new type of
    dirent, with d_type DT_SUBVOL, that instead points to an entry in the
    subvolumes btree, and the subvolume has a pointer to the root inode.
    
    This patch adds bch2_dirent_read_target() to get the inode (and
    potentially subvolume) a dirent points to, and changes existing code to
    use that instead of reading from d_inum directly.
    Signed-off-by: default avatarKent Overstreet <kent.overstreet@gmail.com>
    b9e1adf5
fsck.c 33.7 KB