Lines Matching defs:path
95 static int import_file(struct fs *fs, char *path, struct imported *out)
102 ret = stat(path, &st);
104 WARN("importing %s: stat failed: %s\n", path, strerror(errno));
111 "out of memory\n", path);
116 path_copy = strdup(path);
118 WARN("importing %s: couldn't strdup path: out of memory\n",
119 path);
124 f->path = path_copy;
134 WARN("importing %s: couldn't allocate data extent\n", path);
193 static int import_dir(struct fs *fs, char *path, int is_root,
215 dir = opendir(path);
217 WARN("importing %s: opendir failed: %s\n", path,
225 "out of memory\n", path);
230 d->path = strdup(path);
231 if (!d->path) {
232 WARN("importing %s: couldn't strdup path: out of memory\n",
233 path);
248 ret = snprintf(ch_path, PATH_MAX, "%s/%s", path, de->d_name);
256 "out of memory\n", path);
298 "out of space\n", path);
346 free(d->path);
352 int import_tree(struct fs *fs, char *path)
357 ret = import_dir(fs, path, 0, &imp);