Lines Matching refs:path
462 fprintf(stderr, "fuse: path too long: ...%s\n", s + len);
710 int fuse_fs_getattr(struct fuse_fs *fs, const char *path, struct stat *buf)
714 return fs->op.getattr(path, buf);
719 int fuse_fs_fgetattr(struct fuse_fs *fs, const char *path, struct stat *buf,
724 return fs->op.fgetattr(path, buf, fi);
726 return fs->op.getattr(path, buf);
741 int fuse_fs_unlink(struct fuse_fs *fs, const char *path)
745 return fs->op.unlink(path);
750 int fuse_fs_rmdir(struct fuse_fs *fs, const char *path)
754 return fs->op.rmdir(path);
759 int fuse_fs_symlink(struct fuse_fs *fs, const char *linkname, const char *path)
763 return fs->op.symlink(linkname, path);
777 int fuse_fs_release(struct fuse_fs *fs, const char *path,
782 return fs->op.release(path, fi);
787 int fuse_fs_opendir(struct fuse_fs *fs, const char *path,
792 return fs->op.opendir(path, fi);
797 int fuse_fs_open(struct fuse_fs *fs, const char *path,
802 return fs->op.open(path, fi);
807 int fuse_fs_read(struct fuse_fs *fs, const char *path, char *buf, size_t size,
812 return fs->op.read(path, buf, size, off, fi);
817 int fuse_fs_write(struct fuse_fs *fs, const char *path, const char *buf,
822 return fs->op.write(path, buf, size, off, fi);
827 int fuse_fs_fsync(struct fuse_fs *fs, const char *path, int datasync,
832 return fs->op.fsync(path, datasync, fi);
837 int fuse_fs_fsyncdir(struct fuse_fs *fs, const char *path, int datasync,
842 return fs->op.fsyncdir(path, datasync, fi);
847 int fuse_fs_flush(struct fuse_fs *fs, const char *path,
852 return fs->op.flush(path, fi);
857 int fuse_fs_statfs(struct fuse_fs *fs, const char *path, struct statvfs *buf)
861 return fs->op.statfs(path, buf);
869 int fuse_fs_releasedir(struct fuse_fs *fs, const char *path,
874 return fs->op.releasedir(path, fi);
879 int fuse_fs_readdir(struct fuse_fs *fs, const char *path, void *buf,
885 return fs->op.readdir(path, buf, filler, off, fi);
890 int fuse_fs_create(struct fuse_fs *fs, const char *path, mode_t mode,
895 return fs->op.create(path, mode, fi);
900 int fuse_fs_lock(struct fuse_fs *fs, const char *path,
905 return fs->op.lock(path, fi, cmd, lock);
910 int fuse_fs_chown(struct fuse_fs *fs, const char *path, uid_t uid, gid_t gid)
914 return fs->op.chown(path, uid, gid);
919 int fuse_fs_truncate(struct fuse_fs *fs, const char *path, off_t size)
923 return fs->op.truncate(path, size);
928 int fuse_fs_ftruncate(struct fuse_fs *fs, const char *path, off_t size,
933 return fs->op.ftruncate(path, size, fi);
935 return fs->op.truncate(path, size);
940 int fuse_fs_utimens(struct fuse_fs *fs, const char *path,
945 return fs->op.utimens(path, tv);
950 return fs->op.utime(path, &buf);
955 int fuse_fs_access(struct fuse_fs *fs, const char *path, int mask)
959 return fs->op.access(path, mask);
964 int fuse_fs_readlink(struct fuse_fs *fs, const char *path, char *buf,
969 return fs->op.readlink(path, buf, len);
974 int fuse_fs_mknod(struct fuse_fs *fs, const char *path, mode_t mode,
979 return fs->op.mknod(path, mode, rdev);
984 int fuse_fs_mkdir(struct fuse_fs *fs, const char *path, mode_t mode)
988 return fs->op.mkdir(path, mode);
993 int fuse_fs_setxattr(struct fuse_fs *fs, const char *path, const char *name,
998 return fs->op.setxattr(path, name, value, size, flags);
1003 int fuse_fs_getxattr(struct fuse_fs *fs, const char *path, const char *name,
1008 return fs->op.getxattr(path, name, value, size);
1013 int fuse_fs_listxattr(struct fuse_fs *fs, const char *path, char *list,
1018 return fs->op.listxattr(path, list, size);
1023 int fuse_fs_bmap(struct fuse_fs *fs, const char *path, size_t blocksize,
1028 return fs->op.bmap(path, blocksize, idx);
1033 int fuse_fs_removexattr(struct fuse_fs *fs, const char *path, const char *name)
1037 return fs->op.removexattr(path, name);
1042 int fuse_fs_ioctl(struct fuse_fs *fs, const char *path, int cmd, void *arg,
1052 return fs->op.ioctl(path, cmd, arg, fi, flags, data);
1164 const char *name, const char *path,
1171 res = fuse_fs_fgetattr(f->fs, path, &e->attr, fi);
1173 res = fuse_fs_getattr(f->fs, path, &e->attr);
1341 char *path;
1346 path = get_path_name(f, parent, name);
1347 if (path != NULL) {
1350 fprintf(stderr, "LOOKUP %s\n", path);
1352 err = lookup_path(f, parent, name, path, &e, NULL);
1359 free(path);
1380 char *path;
1388 path = get_path(f, ino);
1389 if (path != NULL) {
1392 err = fuse_fs_getattr(f->fs, path, &buf);
1394 free(path);
1411 int fuse_fs_chmod(struct fuse_fs *fs, const char *path, mode_t mode)
1415 return fs->op.chmod(path, mode);
1425 char *path;
1430 path = get_path(f, ino);
1431 if (path != NULL) {
1436 err = fuse_fs_chmod(f->fs, path, attr->st_mode);
1442 err = fuse_fs_chown(f->fs, path, uid, gid);
1446 err = fuse_fs_ftruncate(f->fs, path, attr->st_size, fi);
1448 err = fuse_fs_truncate(f->fs, path, attr->st_size);
1470 err = fuse_fs_utimens(f->fs, path, tv);
1480 err = fuse_fs_utimens(f->fs, path, tv);
1483 err = fuse_fs_getattr(f->fs, path, &buf);
1485 free(path);
1505 char *path;
1510 path = get_path(f, ino);
1511 if (path != NULL) {
1514 fprintf(stderr, "ACCESS %s 0%o\n", path, mask);
1516 err = fuse_fs_access(f->fs, path, mask);
1518 free(path);
1528 char *path;
1533 path = get_path(f, ino);
1534 if (path != NULL) {
1537 err = fuse_fs_readlink(f->fs, path, linkname, sizeof(linkname));
1539 free(path);
1554 char *path;
1559 path = get_path_name(f, parent, name);
1560 if (path) {
1563 fprintf(stderr, "MKNOD %s\n", path);
1571 err = fuse_fs_create(f->fs, path, mode, &fi);
1573 err = lookup_path(f, parent, name, path, &e, &fi);
1574 fuse_fs_release(f->fs, path, &fi);
1578 err = fuse_fs_mknod(f->fs, path, mode, rdev);
1580 err = lookup_path(f, parent, name, path, &e, NULL);
1583 free(path);
1594 char *path;
1599 path = get_path_name(f, parent, name);
1600 if (path != NULL) {
1603 fprintf(stderr, "MKDIR %s\n", path);
1605 err = fuse_fs_mkdir(f->fs, path, mode);
1607 err = lookup_path(f, parent, name, path, &e, NULL);
1609 free(path);
1619 char *path;
1624 path = get_path_name(f, parent, name);
1625 if (path != NULL) {
1628 fprintf(stderr, "UNLINK %s\n", path);
1631 err = hide_node(f, path, parent, name);
1633 err = fuse_fs_unlink(f->fs, path);
1638 free(path);
1647 char *path;
1652 path = get_path_name(f, parent, name);
1653 if (path != NULL) {
1656 fprintf(stderr, "RMDIR %s\n", path);
1658 err = fuse_fs_rmdir(f->fs, path);
1662 free(path);
1673 char *path;
1678 path = get_path_name(f, parent, name);
1679 if (path != NULL) {
1682 fprintf(stderr, "SYMLINK %s\n", path);
1684 err = fuse_fs_symlink(f->fs, linkname, path);
1686 err = lookup_path(f, parent, name, path, &e, NULL);
1688 free(path);
1761 static void fuse_do_release(struct fuse *f, fuse_ino_t ino, const char *path,
1767 fuse_fs_release(f->fs, path ? path : "-", fi);
1779 if(unlink_hidden && path)
1780 fuse_fs_unlink(f->fs, path);
1790 char *path;
1795 path = get_path_name(f, parent, name);
1796 if (path) {
1798 err = fuse_fs_create(f->fs, path, mode, fi);
1800 err = lookup_path(f, parent, name, path, &e, fi);
1802 fuse_fs_release(f->fs, path, fi);
1805 fuse_fs_release(f->fs, path, fi);
1824 fuse_do_release(f, e.ino, path, fi);
1829 (unsigned long long) fi->fh, fi->flags, path);
1834 if (path)
1835 free(path);
1849 static void open_auto_cache(struct fuse *f, fuse_ino_t ino, const char *path,
1864 err = fuse_fs_fgetattr(f->fs, path, &stbuf, fi);
1886 char *path = NULL;
1891 path = get_path(f, ino);
1892 if (path) {
1894 err = fuse_fs_open(f->fs, path, fi);
1903 open_auto_cache(f, ino, path, fi);
1915 fuse_do_release(f, ino, path, fi);
1919 (unsigned long long) fi->fh, fi->flags, path);
1924 if (path)
1925 free(path);
1933 char *path;
1945 path = get_path(f, ino);
1946 if (path != NULL) {
1954 res = fuse_fs_read(f->fs, path, buf, size, off, fi);
1956 free(path);
1977 char *path;
1982 path = get_path(f, ino);
1983 if (path != NULL) {
1991 res = fuse_fs_write(f->fs, path, buf, size, off, fi);
1993 free(path);
2013 char *path;
2018 path = get_path(f, ino);
2019 if (path != NULL) {
2024 err = fuse_fs_fsync(f->fs, path, datasync, fi);
2026 free(path);
2049 char *path;
2072 path = get_path(f, ino);
2073 if (path != NULL) {
2075 err = fuse_fs_opendir(f->fs, path, &fi);
2083 fuse_fs_releasedir(f->fs, path, &fi);
2093 free(path);
2180 char *path;
2182 path = get_path(f, ino);
2183 if (path != NULL) {
2192 err = fuse_fs_readdir(f->fs, path, dh, fill_dir, off, fi);
2199 free(path);
2247 char *path;
2250 path = get_path(f, ino);
2252 fuse_fs_releasedir(f->fs, path ? path : "-", &fi);
2254 if (path)
2255 free(path);
2270 char *path;
2277 path = get_path(f, ino);
2278 if (path != NULL) {
2281 err = fuse_fs_fsyncdir(f->fs, path, datasync, &fi);
2283 free(path);
2293 char *path;
2300 path = strdup("/");
2303 path = get_path(f, ino);
2305 if (path) {
2308 err = fuse_fs_statfs(f->fs, path, &buf);
2310 free(path);
2324 char *path;
2329 path = get_path(f, ino);
2330 if (path != NULL) {
2333 err = fuse_fs_setxattr(f->fs, path, name, value, size, flags);
2335 free(path);
2345 char *path;
2349 path = get_path(f, ino);
2350 if (path != NULL) {
2353 err = fuse_fs_getxattr(f->fs, path, name, value, size);
2355 free(path);
2391 char *path;
2396 path = get_path(f, ino);
2397 if (path != NULL) {
2400 err = fuse_fs_listxattr(f->fs, path, list, size);
2402 free(path);
2438 char *path;
2443 path = get_path(f, ino);
2444 if (path != NULL) {
2447 err = fuse_fs_removexattr(f->fs, path, name);
2449 free(path);
2572 const char *path, struct fuse_file_info *fi)
2584 err = fuse_fs_flush(f->fs, path, fi);
2585 errlock = fuse_fs_lock(f->fs, path, fi, F_SETLK, &lock);
2607 char *path;
2611 path = get_path(f, ino);
2618 err = fuse_flush_common(f, req, ino, path, fi);
2624 fuse_do_release(f, ino, path, fi);
2626 free(path);
2636 char *path;
2640 path = get_path(f, ino);
2641 if (path && f->conf.debug)
2643 err = fuse_flush_common(f, req, ino, path, fi);
2644 free(path);
2654 char *path;
2659 path = get_path(f, ino);
2660 if (path != NULL) {
2663 err = fuse_fs_lock(f->fs, path, fi, cmd, lock);
2665 free(path);
2719 char *path;
2724 path = get_path(f, ino);
2725 if (path != NULL) {
2727 err = fuse_fs_bmap(f->fs, path, blocksize, &idx);
2729 free(path);
2746 char *path, *out_buf = NULL;
2769 path = get_path(f, ino); /* Should be get_path_nullok() */
2770 if (!path) {
2778 err = fuse_fs_ioctl(f->fs, path, cmd, arg, &fi, flags,
2782 free(path);
3222 char *path = get_path(f, node->nodeid);
3223 if (path) {
3224 fuse_fs_unlink(f->fs, path);
3225 free(path);