Lines Matching refs:path

30 static int subdir_addpath(struct subdir *d, const char *path, char **newpathp)
34 if (path != NULL) {
35 unsigned newlen = d->baselen + strlen(path);
41 if (path[0] == '/')
42 path++;
44 strcpy(newpath + d->baselen, path);
53 static int subdir_getattr(const char *path, struct stat *stbuf,
58 int err = subdir_addpath(d, path, &newpath);
66 static int subdir_access(const char *path, int mask)
70 int err = subdir_addpath(d, path, &newpath);
104 static void transform_symlink(struct subdir *d, const char *path,
116 strip_common(&l, &path);
120 dotdots = count_components(path);
142 static int subdir_readlink(const char *path, char *buf, size_t size)
146 int err = subdir_addpath(d, path, &newpath);
156 static int subdir_opendir(const char *path, struct fuse_file_info *fi)
160 int err = subdir_addpath(d, path, &newpath);
168 static int subdir_readdir(const char *path, void *buf,
175 int err = subdir_addpath(d, path, &newpath);
184 static int subdir_releasedir(const char *path, struct fuse_file_info *fi)
188 int err = subdir_addpath(d, path, &newpath);
196 static int subdir_mknod(const char *path, mode_t mode, dev_t rdev)
200 int err = subdir_addpath(d, path, &newpath);
208 static int subdir_mkdir(const char *path, mode_t mode)
212 int err = subdir_addpath(d, path, &newpath);
220 static int subdir_unlink(const char *path)
224 int err = subdir_addpath(d, path, &newpath);
232 static int subdir_rmdir(const char *path)
236 int err = subdir_addpath(d, path, &newpath);
244 static int subdir_symlink(const char *from, const char *path)
248 int err = subdir_addpath(d, path, &newpath);
290 static int subdir_chmod(const char *path, mode_t mode,
295 int err = subdir_addpath(d, path, &newpath);
303 static int subdir_chown(const char *path, uid_t uid, gid_t gid,
308 int err = subdir_addpath(d, path, &newpath);
316 static int subdir_truncate(const char *path, off_t size,
321 int err = subdir_addpath(d, path, &newpath);
329 static int subdir_utimens(const char *path, const struct timespec ts[2],
334 int err = subdir_addpath(d, path, &newpath);
342 static int subdir_create(const char *path, mode_t mode,
347 int err = subdir_addpath(d, path, &newpath);
355 static int subdir_open(const char *path, struct fuse_file_info *fi)
359 int err = subdir_addpath(d, path, &newpath);
367 static int subdir_read_buf(const char *path, struct fuse_bufvec **bufp,
372 int err = subdir_addpath(d, path, &newpath);
380 static int subdir_write_buf(const char *path, struct fuse_bufvec *buf,
385 int err = subdir_addpath(d, path, &newpath);
393 static int subdir_statfs(const char *path, struct statvfs *stbuf)
397 int err = subdir_addpath(d, path, &newpath);
405 static int subdir_flush(const char *path, struct fuse_file_info *fi)
409 int err = subdir_addpath(d, path, &newpath);
417 static int subdir_release(const char *path, struct fuse_file_info *fi)
421 int err = subdir_addpath(d, path, &newpath);
429 static int subdir_fsync(const char *path, int isdatasync,
434 int err = subdir_addpath(d, path, &newpath);
442 static int subdir_fsyncdir(const char *path, int isdatasync,
447 int err = subdir_addpath(d, path, &newpath);
455 static int subdir_setxattr(const char *path, const char *name,
460 int err = subdir_addpath(d, path, &newpath);
469 static int subdir_getxattr(const char *path, const char *name, char *value,
474 int err = subdir_addpath(d, path, &newpath);
482 static int subdir_listxattr(const char *path, char *list, size_t size)
486 int err = subdir_addpath(d, path, &newpath);
494 static int subdir_removexattr(const char *path, const char *name)
498 int err = subdir_addpath(d, path, &newpath);
506 static int subdir_lock(const char *path, struct fuse_file_info *fi, int cmd,
511 int err = subdir_addpath(d, path, &newpath);
519 static int subdir_flock(const char *path, struct fuse_file_info *fi, int op)
523 int err = subdir_addpath(d, path, &newpath);
531 static int subdir_bmap(const char *path, size_t blocksize, uint64_t *idx)
535 int err = subdir_addpath(d, path, &newpath);
543 static off_t subdir_lseek(const char *path, off_t off, int whence,
548 int res = subdir_addpath(ic, path, &newpath);