Lines Matching defs:path
14 * Resolve the path of ino inside subvolume @root into @path_ret.
20 struct btrfs_path path;
31 btrfs_init_path(&path);
36 btrfs_release_path(&path);
41 ret = btrfs_search_slot(NULL, root, &key, &path, 0, 0);
47 ret = btrfs_previous_item(root, &path, cur,
55 iref = btrfs_item_ptr(path.nodes[0], path.slots[0],
57 name_len = btrfs_inode_ref_name_len(path.nodes[0],
63 read_extent_buffer(path.nodes[0], path_ret,
69 btrfs_item_key_to_cpu(path.nodes[0], &key, path.slots[0]);
73 btrfs_release_path(&path);
82 struct btrfs_path path;
93 btrfs_init_path(&path);
103 btrfs_release_path(&path);
105 ret = btrfs_search_slot(NULL, tree_root, &key, &path, 0, 0);
110 ret = btrfs_previous_item(tree_root, &path, cur,
118 rr = btrfs_item_ptr(path.nodes[0], path.slots[0],
121 name_len = btrfs_root_ref_name_len(path.nodes[0], rr);
126 ino = btrfs_root_ref_dirid(path.nodes[0], rr);
127 read_extent_buffer(path.nodes[0], path_ret,
133 /* Get the path inside the parent subvolume */
134 btrfs_item_key_to_cpu(path.nodes[0], &key, path.slots[0]);
153 btrfs_release_path(&path);
162 struct btrfs_path path;
175 printf("ID %llu gen %llu path %.*s\n",
182 btrfs_init_path(&path);
183 ret = btrfs_search_slot(NULL, tree_root, &key, &path, 0, 0);
187 if (path.slots[0] >= btrfs_header_nritems(path.nodes[0]))
190 btrfs_item_key_to_cpu(path.nodes[0], &key, path.slots[0]);
207 printf("ID %llu gen %llu path %.*s\n",
212 ret = btrfs_next_item(tree_root, &path);