Lines Matching defs:subvol

62 static int subvol_lookup(struct btree_trans *trans, u32 subvol,
66 int ret = bch2_subvolume_get(trans, subvol, false, 0, &s);
182 subvol_inum root_inum = { .subvol = le32_to_cpu(st.master_subvol) };
184 struct bch_subvolume subvol;
186 false, 0, &subvol);
187 bch_err_msg(c, ret, "looking up root subvol %u for snapshot %u",
192 if (!subvol.inode) {
194 struct bkey_i_subvolume *subvol = bch2_bkey_get_mut_typed(trans, &iter,
197 ret = PTR_ERR_OR_ZERO(subvol);
201 subvol->v.inode = cpu_to_le64(reattaching_inum);
205 root_inum.inum = le64_to_cpu(subvol.inode);
211 bch_err_msg(c, ret, "looking up root inode %llu for subvol %u",
303 snprintf(name_buf, sizeof(name_buf), "subvol-%u", inode->bi_subvol);
384 bch_err(c, "need to reconstruct subvol, but have interior node snapshot");
413 bch_info(c, "reconstructing subvol %u with root inode %llu", subvolid, inum);
439 s->v.subvol = cpu_to_le32(subvolid);
1105 "inode %llu:%u has subvol %u but nonzero parent subvol %u",
1131 "inode %llu:%u points to subvol %u, but subvol points to %llu:%u",
1879 * Couldn't find a subvol for dirent's snapshot - but we lost
1894 "dirent not visible in parent_subvol (not an ancestor of subvol snap %u)\n%s",
1898 bch_err(c, "could not find a subvol for snapshot %u", d.k->p.snapshot);
1929 "subvol with wrong fs_path_parent, should be be %u\n%s",
1949 bch_err(c, "subvol %u points to missing inode root %llu", target_subvol, target_inum);
1957 "subvol root %llu has wrong bi_parent_subvol: got %u, should be %u",
2208 "root subvol missing")) {
2224 bch_err_msg(c, ret, "writing root subvol");