Lines Matching defs:path
907 const char *path, fuse_ino_t *inop)
909 char *tmp = strdup(path);
991 char **path, struct node **wnodep, bool need_lock)
1000 *path = NULL;
1056 *path = buf;
1186 char **path, struct node **wnode)
1191 err = try_get_path(f, nodeid, name, path, wnode, true);
1196 .path1 = path,
1208 static int get_path(struct fuse *f, fuse_ino_t nodeid, char **path)
1210 return get_path_common(f, nodeid, NULL, path, NULL);
1213 static int get_path_nullok(struct fuse *f, fuse_ino_t nodeid, char **path)
1218 *path = NULL;
1220 err = get_path_common(f, nodeid, NULL, path, NULL);
1229 char **path)
1231 return get_path_common(f, nodeid, name, path, NULL);
1235 char **path, struct node **wnode)
1237 return get_path_common(f, nodeid, name, path, wnode);
1332 struct node *wnode, char *path)
1339 free(path);
1342 static void free_path(struct fuse *f, fuse_ino_t nodeid, char *path)
1344 if (path)
1345 free_path_wrlock(f, nodeid, NULL, path);
1580 int fuse_fs_getattr(struct fuse_fs *fs, const char *path, struct stat *buf,
1589 path);
1591 return fs->op.getattr(path, buf, fi);
1612 int fuse_fs_unlink(struct fuse_fs *fs, const char *path)
1617 fuse_log(FUSE_LOG_DEBUG, "unlink %s\n", path);
1619 return fs->op.unlink(path);
1625 int fuse_fs_rmdir(struct fuse_fs *fs, const char *path)
1630 fuse_log(FUSE_LOG_DEBUG, "rmdir %s\n", path);
1632 return fs->op.rmdir(path);
1638 int fuse_fs_symlink(struct fuse_fs *fs, const char *linkname, const char *path)
1643 fuse_log(FUSE_LOG_DEBUG, "symlink %s %s\n", linkname, path);
1645 return fs->op.symlink(linkname, path);
1664 int fuse_fs_release(struct fuse_fs *fs, const char *path,
1674 return fs->op.release(path, fi);
1680 int fuse_fs_opendir(struct fuse_fs *fs, const char *path,
1689 path);
1691 err = fs->op.opendir(path, fi);
1695 (unsigned long long) fi->fh, fi->flags, path);
1703 int fuse_fs_open(struct fuse_fs *fs, const char *path,
1712 path);
1714 err = fs->op.open(path, fi);
1718 (unsigned long long) fi->fh, fi->flags, path);
1738 int fuse_fs_read_buf(struct fuse_fs *fs, const char *path,
1753 res = fs->op.read_buf(path, bufp, size, off, fi);
1771 res = fs->op.read(path, mem, size, off, fi);
1793 int fuse_fs_read(struct fuse_fs *fs, const char *path, char *mem, size_t size,
1809 res = fs->op.read_buf(path, &buf, size, off, fi);
1818 res = fs->op.read(path, mem, size, off, fi);
1835 int fuse_fs_write_buf(struct fuse_fs *fs, const char *path,
1855 res = fs->op.write_buf(path, buf, off, fi);
1879 res = fs->op.write(path, flatbuf->mem, flatbuf->size,
1899 int fuse_fs_write(struct fuse_fs *fs, const char *path, const char *mem,
1906 return fuse_fs_write_buf(fs, path, &bufv, off, fi);
1909 int fuse_fs_fsync(struct fuse_fs *fs, const char *path, int datasync,
1918 return fs->op.fsync(path, datasync, fi);
1924 int fuse_fs_fsyncdir(struct fuse_fs *fs, const char *path, int datasync,
1933 return fs->op.fsyncdir(path, datasync, fi);
1939 int fuse_fs_flush(struct fuse_fs *fs, const char *path,
1948 return fs->op.flush(path, fi);
1954 int fuse_fs_statfs(struct fuse_fs *fs, const char *path, struct statvfs *buf)
1959 fuse_log(FUSE_LOG_DEBUG, "statfs %s\n", path);
1961 return fs->op.statfs(path, buf);
1969 int fuse_fs_releasedir(struct fuse_fs *fs, const char *path,
1978 return fs->op.releasedir(path, fi);
1984 int fuse_fs_readdir(struct fuse_fs *fs, const char *path, void *buf,
1998 return fs->op.readdir(path, buf, filler, off, fi, flags);
2004 int fuse_fs_create(struct fuse_fs *fs, const char *path, mode_t mode,
2014 fi->flags, path, mode,
2017 err = fs->op.create(path, mode, fi);
2021 (unsigned long long) fi->fh, fi->flags, path);
2029 int fuse_fs_lock(struct fuse_fs *fs, const char *path,
2048 return fs->op.lock(path, fi, cmd, lock);
2054 int fuse_fs_flock(struct fuse_fs *fs, const char *path,
2069 return fs->op.flock(path, fi, op);
2075 int fuse_fs_chown(struct fuse_fs *fs, const char *path, uid_t uid,
2084 path, (unsigned long) uid, (unsigned long) gid);
2086 return fs->op.chown(path, uid, gid, fi);
2092 int fuse_fs_truncate(struct fuse_fs *fs, const char *path, off_t size,
2103 return fs->op.truncate(path, size, fi);
2109 int fuse_fs_utimens(struct fuse_fs *fs, const char *path,
2118 path, tv[0].tv_sec, tv[0].tv_nsec,
2121 return fs->op.utimens(path, tv, fi);
2127 int fuse_fs_access(struct fuse_fs *fs, const char *path, int mask)
2132 fuse_log(FUSE_LOG_DEBUG, "access %s 0%o\n", path, mask);
2134 return fs->op.access(path, mask);
2140 int fuse_fs_readlink(struct fuse_fs *fs, const char *path, char *buf,
2146 fuse_log(FUSE_LOG_DEBUG, "readlink %s %lu\n", path,
2149 return fs->op.readlink(path, buf, len);
2155 int fuse_fs_mknod(struct fuse_fs *fs, const char *path, mode_t mode,
2162 path, mode, (unsigned long long) rdev,
2165 return fs->op.mknod(path, mode, rdev);
2171 int fuse_fs_mkdir(struct fuse_fs *fs, const char *path, mode_t mode)
2177 path, mode, fuse_get_context()->umask);
2179 return fs->op.mkdir(path, mode);
2185 int fuse_fs_setxattr(struct fuse_fs *fs, const char *path, const char *name,
2192 path, name, (unsigned long) size, flags);
2194 return fs->op.setxattr(path, name, value, size, flags);
2200 int fuse_fs_getxattr(struct fuse_fs *fs, const char *path, const char *name,
2207 path, name, (unsigned long) size);
2209 return fs->op.getxattr(path, name, value, size);
2215 int fuse_fs_listxattr(struct fuse_fs *fs, const char *path, char *list,
2222 path, (unsigned long) size);
2224 return fs->op.listxattr(path, list, size);
2230 int fuse_fs_bmap(struct fuse_fs *fs, const char *path, size_t blocksize,
2237 path, (unsigned long) blocksize,
2240 return fs->op.bmap(path, blocksize, idx);
2246 int fuse_fs_removexattr(struct fuse_fs *fs, const char *path, const char *name)
2251 fuse_log(FUSE_LOG_DEBUG, "removexattr %s %s\n", path, name);
2253 return fs->op.removexattr(path, name);
2259 int fuse_fs_ioctl(struct fuse_fs *fs, const char *path, unsigned int cmd,
2269 return fs->op.ioctl(path, cmd, arg, fi, flags, data);
2274 int fuse_fs_poll(struct fuse_fs *fs, const char *path,
2287 res = fs->op.poll(path, fi, ph, reventsp);
2298 int fuse_fs_fallocate(struct fuse_fs *fs, const char *path, int mode,
2305 path,
2310 return fs->op.fallocate(path, mode, offset, length, fi);
2338 off_t fuse_fs_lseek(struct fuse_fs *fs, const char *path, off_t off, int whence,
2349 return fs->op.lseek(path, off, whence, fi);
2482 const char *name, const char *path,
2488 res = fuse_fs_getattr(f->fs, path, &e->attr, fi);
2637 char *path;
2666 err = get_path_name(f, parent, name, &path);
2670 fuse_log(FUSE_LOG_DEBUG, "LOOKUP %s\n", path);
2672 err = lookup_path(f, parent, name, path, &e, NULL);
2679 free_path(f, parent, path);
2721 char *path;
2727 err = get_path_nullok(f, ino, &path);
2729 err = get_path(f, ino, &path);
2733 err = fuse_fs_getattr(f->fs, path, &buf, fi);
2735 free_path(f, ino, path);
2753 int fuse_fs_chmod(struct fuse_fs *fs, const char *path, mode_t mode,
2762 path, (unsigned long long) mode);
2764 return fs->op.chmod(path, mode, fi);
2775 char *path;
2780 err = get_path_nullok(f, ino, &path);
2782 err = get_path(f, ino, &path);
2788 err = fuse_fs_chmod(f->fs, path, attr->st_mode, fi);
2794 err = fuse_fs_chown(f->fs, path, uid, gid, fi);
2797 err = fuse_fs_truncate(f->fs, path,
2820 err = fuse_fs_utimens(f->fs, path, tv, fi);
2831 err = fuse_fs_utimens(f->fs, path, tv, fi);
2834 err = fuse_fs_getattr(f->fs, path, &buf, fi);
2837 free_path(f, ino, path);
2854 char *path;
2857 err = get_path(f, ino, &path);
2862 err = fuse_fs_access(f->fs, path, mask);
2864 free_path(f, ino, path);
2873 char *path;
2876 err = get_path(f, ino, &path);
2880 err = fuse_fs_readlink(f->fs, path, linkname, sizeof(linkname));
2882 free_path(f, ino, path);
2896 char *path;
2899 err = get_path_name(f, parent, name, &path);
2910 err = fuse_fs_create(f->fs, path, mode, &fi);
2912 err = lookup_path(f, parent, name, path, &e,
2914 fuse_fs_release(f->fs, path, &fi);
2918 err = fuse_fs_mknod(f->fs, path, mode, rdev);
2920 err = lookup_path(f, parent, name, path, &e,
2924 free_path(f, parent, path);
2934 char *path;
2937 err = get_path_name(f, parent, name, &path);
2942 err = fuse_fs_mkdir(f->fs, path, mode);
2944 err = lookup_path(f, parent, name, path, &e, NULL);
2946 free_path(f, parent, path);
2956 char *path;
2959 err = get_path_wrlock(f, parent, name, &path, &wnode);
2965 err = hide_node(f, path, parent, name);
2971 /* get the hidden file path, to unlink it */
2981 err = fuse_fs_unlink(f->fs, path);
2986 free_path_wrlock(f, parent, wnode, path);
2995 char *path;
2998 err = get_path_wrlock(f, parent, name, &path, &wnode);
3003 err = fuse_fs_rmdir(f->fs, path);
3007 free_path_wrlock(f, parent, wnode, path);
3017 char *path;
3020 err = get_path_name(f, parent, name, &path);
3025 err = fuse_fs_symlink(f->fs, linkname, path);
3027 err = lookup_path(f, parent, name, path, &e, NULL);
3029 free_path(f, parent, path);
3097 static void fuse_do_release(struct fuse *f, fuse_ino_t ino, const char *path,
3103 fuse_fs_release(f->fs, path, fi);
3116 if (path) {
3117 fuse_fs_unlink(f->fs, path);
3136 char *path;
3139 err = get_path_name(f, parent, name, &path);
3142 err = fuse_fs_create(f->fs, path, mode, fi);
3144 err = lookup_path(f, parent, name, path, &e, fi);
3146 fuse_fs_release(f->fs, path, fi);
3149 fuse_fs_release(f->fs, path, fi);
3170 fuse_do_release(f, e.ino, path, fi);
3177 free_path(f, parent, path);
3187 static void open_auto_cache(struct fuse *f, fuse_ino_t ino, const char *path,
3203 err = fuse_fs_getattr(f->fs, path, &stbuf, fi);
3223 char *path;
3226 err = get_path(f, ino, &path);
3229 err = fuse_fs_open(f->fs, path, fi);
3237 open_auto_cache(f, ino, path, fi);
3256 fuse_do_release(f, ino, path, fi);
3261 free_path(f, ino, path);
3269 char *path;
3272 res = get_path_nullok(f, ino, &path);
3277 res = fuse_fs_read_buf(f->fs, path, &buf, size, off, fi);
3279 free_path(f, ino, path);
3295 char *path;
3298 res = get_path_nullok(f, ino, &path);
3303 res = fuse_fs_write_buf(f->fs, path, buf, off, fi);
3305 free_path(f, ino, path);
3318 char *path;
3321 err = get_path_nullok(f, ino, &path);
3326 err = fuse_fs_fsync(f->fs, path, datasync, fi);
3328 free_path(f, ino, path);
3349 char *path;
3371 err = get_path(f, ino, &path);
3374 err = fuse_fs_opendir(f->fs, path, &fi);
3384 fuse_fs_releasedir(f->fs, path, &fi);
3393 free_path(f, ino, path);
3612 char *path;
3616 err = get_path_nullok(f, ino, &path);
3618 err = get_path(f, ino, &path);
3635 err = fuse_fs_readdir(f->fs, path, dh, filler, off, fi, flags);
3642 free_path(f, ino, path);
3745 char *path;
3747 get_path_nullok(f, ino, &path);
3750 fuse_fs_releasedir(f->fs, path, &fi);
3752 free_path(f, ino, path);
3768 char *path;
3773 err = get_path_nullok(f, ino, &path);
3777 err = fuse_fs_fsyncdir(f->fs, path, datasync, &fi);
3779 free_path(f, ino, path);
3788 char *path = NULL;
3793 err = get_path(f, ino, &path);
3798 err = fuse_fs_statfs(f->fs, path ? path : "/", &buf);
3800 free_path(f, ino, path);
3813 char *path;
3816 err = get_path(f, ino, &path);
3820 err = fuse_fs_setxattr(f->fs, path, name, value, size, flags);
3822 free_path(f, ino, path);
3831 char *path;
3833 err = get_path(f, ino, &path);
3837 err = fuse_fs_getxattr(f->fs, path, name, value, size);
3839 free_path(f, ino, path);
3874 char *path;
3877 err = get_path(f, ino, &path);
3881 err = fuse_fs_listxattr(f->fs, path, list, size);
3883 free_path(f, ino, path);
3918 char *path;
3921 err = get_path(f, ino, &path);
3925 err = fuse_fs_removexattr(f->fs, path, name);
3927 free_path(f, ino, path);
4052 const char *path, struct fuse_file_info *fi)
4064 err = fuse_fs_flush(f->fs, path, fi);
4065 errlock = fuse_fs_lock(f->fs, path, fi, F_SETLK, &lock);
4088 char *path;
4091 get_path_nullok(f, ino, &path);
4093 err = fuse_flush_common(f, req, ino, path, fi);
4099 fuse_do_release(f, ino, path, fi);
4101 free_path(f, ino, path);
4110 char *path;
4113 get_path_nullok(f, ino, &path);
4114 err = fuse_flush_common(f, req, ino, path, fi);
4115 free_path(f, ino, path);
4125 char *path;
4128 err = get_path_nullok(f, ino, &path);
4132 err = fuse_fs_lock(f->fs, path, fi, cmd, lock);
4134 free_path(f, ino, path);
4187 char *path;
4190 err = get_path_nullok(f, ino, &path);
4194 err = fuse_fs_flock(f->fs, path, fi, op);
4196 free_path(f, ino, path);
4206 char *path;
4209 err = get_path(f, ino, &path);
4212 err = fuse_fs_bmap(f->fs, path, blocksize, &idx);
4214 free_path(f, ino, path);
4230 char *path, *out_buf = NULL;
4253 err = get_path_nullok(f, ino, &path);
4259 err = fuse_fs_ioctl(f->fs, path, cmd, arg, &fi, flags,
4263 free_path(f, ino, path);
4280 char *path;
4284 err = get_path_nullok(f, ino, &path);
4287 err = fuse_fs_poll(f->fs, path, fi, ph, &revents);
4289 free_path(f, ino, path);
4302 char *path;
4305 err = get_path_nullok(f, ino, &path);
4308 err = fuse_fs_fallocate(f->fs, path, mode, offset, length, fi);
4310 free_path(f, ino, path);
4359 char *path;
4363 err = get_path(f, ino, &path);
4370 res = fuse_fs_lseek(f->fs, path, off, whence, fi);
4372 free_path(f, ino, path);
4637 int fuse_invalidate_path(struct fuse *f, const char *path) {
4639 int err = lookup_path_in_cache(f, path, &ino);
5075 char *path;
5076 if (try_get_path(f, node->nodeid, NULL, &path, NULL, false) == 0) {
5077 fuse_fs_unlink(f->fs, path);
5078 free(path);