The dirent that points to a subvolume root is in the parent subvolume.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
goto disconnected;
}
+ inum.subvol = inode.bi_parent_subvol ?: inum.subvol;
+ inum.inum = inode.bi_dir;
+
u32 snapshot;
ret = bch2_subvolume_get_snapshot(trans, inum.subvol, &snapshot);
if (ret)
prt_char(path, '/');
- if (d.v->d_type == DT_SUBVOL)
- inum.subvol = le32_to_cpu(d.v->d_parent_subvol);
- inum.inum = d.k->p.inode;
-
bch2_trans_iter_exit(trans, &d_iter);
}