Lines Matching defs:path
636 * Make a path suitable for feeding to libntfs-3g
641 static int cleanpath(char *path)
648 for (p=path; *p; p++)
653 p = strstr(path, "/./");
658 p = strstr(path, "/../");
661 while ((d != path) && (*--d != '/'))
679 * Build a path with Unix-type separators
681 * The path from the ntfs root is required for libntfs-3g calls
692 fprintf(stderr,"Bad path %s\n",name);
1910 /* build a full path to locate the mapping file */
1937 printf(" Retry with full path of file\n");
4068 /* Get the path to the root of the file system */
4083 /* go down the path to inode 5 */
4308 static BOOL recurseshow(const char *path)
4317 dircontext.dir = path;
4318 isdir = ntfs_read_directory(ntfs_context, path,
4321 showfull(path,TRUE);
4336 showfull(path,FALSE);
4344 printf("** Could not access %s\n",path);
4353 static BOOL singleshow(const char *path)
4359 isdir = ntfs_read_directory(ntfs_context, path,
4362 showfull(path,isdir);
4364 printf("** Could not access %s\n",path);
4376 static ssize_t ntfs_getxattr(const char *path, const char *name, void *value, size_t size)
4379 return getxattr(path, name, value, size, 0, 0);
4381 return getxattr(path, name, value, size);
4544 static BOOL recurseset_posix(const char *path, const struct POSIX_SECURITY *pxdesc)
4553 dircontext.dir = path;
4554 isdir = ntfs_read_directory(ntfs_context, path,
4557 err = !setfull_posix(path,pxdesc,TRUE);
4559 printf("** Failed to update %s\n",path);
4576 err = !setfull_posix(path,pxdesc,FALSE);
4578 printf("** Failed to update %s\n",path);
4583 printf("** Could not access %s\n",path);
4593 static BOOL recurseset(const char *path, int mode)
4602 dircontext.dir = path;
4603 isdir = ntfs_read_directory(ntfs_context, path,
4606 setfull(path,mode,TRUE);
4619 setfull(path,mode,FALSE);
4621 printf("** Could not access %s\n",path);
4633 static BOOL singleset_posix(const char *path, const struct POSIX_SECURITY *pxdesc)
4639 isdir = ntfs_read_directory(ntfs_context, path,
4642 err = !setfull_posix(path,pxdesc,isdir);
4644 printf("** Failed to update %s\n",path);
4649 printf("** Could not access %s\n",path);
4659 static BOOL singleset(const char *path, int mode)
4665 isdir = ntfs_read_directory(ntfs_context, path,
4668 setfull(path,mode,isdir);
4670 printf("** Could not access %s\n",path);
6072 fprintf(stderr,"please use the full path\n");
6109 fprintf(stderr,"Bad path %s\n", arg);