Lines Matching defs:path
213 "Plugin path: " PLUGIN_DIR "\n\n"
250 * ntfs_fuse_is_named_data_stream - check path to be to named data stream
251 * @path: path to check
253 * Returns 1 if path is to named data stream or 0 otherwise.
255 static int ntfs_fuse_is_named_data_stream(const char *path)
257 if (strchr(path, ':') && ctx->streams == NF_STREAMS_INTERFACE_WINDOWS)
330 const char *path, ntfs_inode *dir_ni,
352 dirpath = strdup(path);
379 path);
409 const char *path, ntfs_inode *dir_ni,
421 dirpath = strdup(path);
441 static ntfs_inode *get_parent_dir(const char *path)
447 dirpath = strdup(path);
467 * @path: ignored (but fuse requires it)
482 static int ntfs_fuse_statfs(const char *path __attribute__((unused)),
537 * ntfs_fuse_parse_path - split path to path and stream name.
538 * @org_path: path to split
539 * @path: pointer to buffer in which parsed path saved
542 * This function allocates buffers for @*path and @*stream, user must free them
550 static int ntfs_fuse_parse_path(const char *org_path, char **path,
560 *path = strsep(&stream_name_mbs, ":");
565 free(*path);
566 *path = NULL;
572 *path = stream_name_mbs;
589 char *path = NULL;
593 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
598 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
609 free(path);
615 int ntfs_macfuse_setcrtime(const char *path, const struct timespec *tv)
620 if (ntfs_fuse_is_named_data_stream(path))
622 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
636 int ntfs_macfuse_setbkuptime(const char *path, const struct timespec *tv)
641 if (ntfs_fuse_is_named_data_stream(path))
643 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
657 int ntfs_macfuse_setchgtime(const char *path, const struct timespec *tv)
662 if (ntfs_fuse_is_named_data_stream(path))
664 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
811 char *path = NULL;
817 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
821 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
832 && !ntfs_allowed_dir_access(&security,path,
1083 free(path);
1135 char *path = NULL;
1146 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
1153 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
1252 free(path);
1374 static int ntfs_fuse_opendir(const char *path,
1382 if (ntfs_fuse_is_named_data_stream(path))
1385 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
1399 if (!strcmp(path,"/")
1401 path, ni, ni, accesstype | S_IEXEC)
1402 : !ntfs_allowed_dir_access(&security, path,
1428 static int ntfs_fuse_readdir(const char *path, void *buf,
1439 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
1474 char *path = NULL;
1482 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
1485 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
1508 path,(ntfs_inode*)NULL,ni,S_IEXEC)
1551 free(path);
1562 char *path = NULL;
1571 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
1574 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
1642 free(path);
1653 char *path = NULL;
1657 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
1662 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
1716 free(path);
1728 char *path = NULL;
1743 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
1748 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
1794 free(path);
1815 char *path = NULL;
1823 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
1826 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
1863 && (!ntfs_allowed_dir_access(&security, path,
1897 free(path);
1918 static int ntfs_fuse_chmod(const char *path,
1925 if (ntfs_fuse_is_named_data_stream(path))
1941 if (ntfs_allowed_dir_access(&security,path,
1944 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
1964 static int ntfs_fuse_chown(const char *path, uid_t uid, gid_t gid)
1970 if (ntfs_fuse_is_named_data_stream(path))
1989 if (ntfs_allowed_dir_access(&security,path,
1992 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2015 static int ntfs_fuse_access(const char *path, int type)
2022 if (ntfs_fuse_is_named_data_stream(path))
2033 if (ntfs_allowed_dir_access(&security,path,(ntfs_inode*)NULL,
2035 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2067 char *path = NULL;
2091 &path, &stream_name);
2102 free(path);
2240 free(path);
2252 static int ntfs_fuse_create_stream(const char *path,
2259 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2268 res = ntfs_fuse_create(path, S_IFREG, 0, NULL,
2271 return ntfs_fuse_create_stream(path,
2307 char *path = NULL;
2312 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
2324 res = ntfs_fuse_create(path, mode & (S_IFMT | 07777), dev,
2327 res = ntfs_fuse_create_stream(path, stream_name,
2330 free(path);
2336 static int ntfs_fuse_mknod(const char *path, mode_t mode, dev_t dev)
2338 return ntfs_fuse_mknod_common(path, mode, dev,
2342 static int ntfs_fuse_create_file(const char *path, mode_t mode,
2345 return ntfs_fuse_mknod_common(path, mode, 0, fi);
2361 char *path;
2372 path = strdup(new_path);
2373 if (!path)
2383 name = strrchr(path, '/');
2394 dir_ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2401 samedir = !strncmp(old_path, path, strlen(path))
2402 && (old_path[strlen(path)] == '/');
2445 free(path);
2454 char *path;
2460 path = strdup(org_path);
2461 if (!path)
2464 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2477 name = strrchr(path, '/');
2486 dir_ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2527 free(path);
2531 static int ntfs_fuse_rm_stream(const char *path, ntfschar *stream_name,
2537 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2551 char *path = NULL;
2559 stream_name_len = ntfs_fuse_parse_path(org_path, &path, &stream_name);
2563 res = ntfs_fuse_rm(path);
2571 || ntfs_allowed_dir_access(&security, path,
2574 res = ntfs_fuse_rm_stream(path, stream_name,
2579 res = ntfs_fuse_rm_stream(path, stream_name, stream_name_len);
2582 free(path);
2683 char *path = NULL;
2694 stream_name_len = ntfs_fuse_parse_path(new_path, &path, &stream_name);
2698 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2713 free(path);
2714 path = (char*)NULL;
2720 &path, &stream_name);
2724 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2746 free(path);
2752 static int ntfs_fuse_mkdir(const char *path,
2755 if (ntfs_fuse_is_named_data_stream(path))
2757 return ntfs_fuse_create(path, S_IFDIR | (mode & 07777), 0, NULL,
2761 static int ntfs_fuse_rmdir(const char *path)
2763 if (ntfs_fuse_is_named_data_stream(path))
2765 return ntfs_fuse_rm(path);
2770 static int ntfs_fuse_utimens(const char *path, const struct timespec tv[2])
2778 if (ntfs_fuse_is_named_data_stream(path))
2783 && !ntfs_allowed_dir_access(&security,path,
2788 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2827 static int ntfs_fuse_utime(const char *path, struct utimbuf *buf)
2839 if (ntfs_fuse_is_named_data_stream(path))
2844 && !ntfs_allowed_dir_access(&security,path,
2849 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2906 static int ntfs_fuse_fsync(const char *path __attribute__((unused)),
2920 static int ntfs_fuse_ioctl(const char *path,
2931 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
2949 static int ntfs_fuse_bmap(const char *path, size_t blocksize, uint64_t *idx)
2960 if (ntfs_fuse_is_named_data_stream(path))
2963 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
3019 const char *path, int attr, BOOL setting)
3026 if (ntfs_fuse_is_named_data_stream(path))
3057 && !strcmp(path,"/"))
3061 if (ntfs_allowed_real_dir_access(security, path,
3064 NULL, path);
3148 static int ntfs_fuse_listxattr(const char *path, char *list, size_t size)
3159 && !ntfs_allowed_dir_access(&security,path,(ntfs_inode*)NULL,
3164 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
3200 static int ntfs_fuse_getxattr_windows(const char *path, const char *name,
3216 && !ntfs_allowed_dir_access(&security,path,(ntfs_inode*)NULL,
3221 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
3280 static int ntfs_fuse_getxattr(const char *path, const char *name,
3283 static int ntfs_fuse_getxattr(const char *path, const char *name,
3318 ni = ntfs_check_access_xattr(&security, path, attr, FALSE);
3322 dir_ni = get_parent_dir(path);
3342 if (ntfs_fuse_is_named_data_stream(path))
3345 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
3350 dir_ni = get_parent_dir(path);
3366 return ntfs_fuse_getxattr_windows(path, name, value, size);
3375 && !ntfs_allowed_dir_access(&security,path,(ntfs_inode*)NULL,
3384 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
3435 static int ntfs_fuse_setxattr(const char *path, const char *name,
3439 static int ntfs_fuse_setxattr(const char *path, const char *name,
3479 ni = ntfs_check_access_xattr(&security,path,attr,TRUE);
3483 dir_ni = get_parent_dir(path);
3508 if (ntfs_fuse_is_named_data_stream(path))
3513 ni = ntfs_check_access_xattr(&security,path,attr,TRUE);
3515 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
3524 dir_ni = get_parent_dir(path);
3557 && !ntfs_allowed_dir_access(&security,path,(ntfs_inode*)NULL,
3567 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);
3682 static int ntfs_fuse_removexattr(const char *path, const char *name)
3717 ni = ntfs_check_access_xattr(&security,path,attr,TRUE);
3721 dir_ni = get_parent_dir(path);
3749 path, attr, TRUE);
3751 if (ntfs_fuse_is_named_data_stream(path)) {
3756 NULL, path);
3766 dir_ni = get_parent_dir(path);
3799 && !ntfs_allowed_dir_access(&security,path,(ntfs_inode*)NULL,
3809 ni = ntfs_pathname_to_inode(ctx->vol, NULL, path);