Lines Matching refs:path_ret
18 static int get_path_in_subvol(struct btrfs_root *root, u64 ino, char *path_ret) in get_path_in_subvol() argument
54 strncpy(tmp, path_ret, PATH_MAX); in get_path_in_subvol()
63 read_extent_buffer(path.nodes[0], path_ret, in get_path_in_subvol()
65 path_ret[name_len] = '/'; in get_path_in_subvol()
66 path_ret[name_len + 1] = '\0'; in get_path_in_subvol()
67 strncat(path_ret, tmp, PATH_MAX); in get_path_in_subvol()
78 static int list_one_subvol(struct btrfs_root *root, char *path_ret) in list_one_subvol() argument
92 path_ret[0] = '\0'; in list_one_subvol()
120 strncpy(tmp, path_ret, PATH_MAX); in list_one_subvol()
127 read_extent_buffer(path.nodes[0], path_ret, in list_one_subvol()
129 path_ret[name_len] = '/'; in list_one_subvol()
130 path_ret[name_len + 1] = '\0'; in list_one_subvol()
131 strncat(path_ret, tmp, PATH_MAX); in list_one_subvol()
143 ret = get_path_in_subvol(root, ino, path_ret); in list_one_subvol()
149 strncpy(tmp, path_ret, PATH_MAX); in list_one_subvol()
150 strncpy(path_ret, "/", PATH_MAX); in list_one_subvol()
151 strncat(path_ret, tmp, PATH_MAX); in list_one_subvol()