Lines Matching refs:new_path
2356 static int ntfs_fuse_link(const char *old_path, const char *new_path)
2370 if (ntfs_fuse_is_named_data_stream(new_path))
2372 path = strdup(new_path);
2589 const char *new_path,
2596 ret = ntfs_fuse_link(new_path, tmp);
2600 ret = ntfs_fuse_unlink(new_path);
2603 ret = ntfs_fuse_link(old_path, new_path);
2609 if (ntfs_fuse_unlink(new_path))
2617 if (ntfs_fuse_link(tmp, new_path)) {
2620 "to '%s'", new_path, tmp);
2631 "as '%s'", new_path, tmp);
2636 static int ntfs_fuse_rename_existing_dest(const char *old_path, const char *new_path)
2647 len = strlen(new_path) + strlen(ext) + 10 + 1; /* wc(str(2^32)) + \0 */
2652 ret = snprintf(tmp, len, "%s%s%010d", new_path, ext, ++ntfs_sequence);
2666 || ntfs_allowed_dir_access(&security, new_path,
2669 ret = ntfs_fuse_safe_rename(old_path, new_path, tmp);
2673 ret = ntfs_fuse_safe_rename(old_path, new_path, tmp);
2680 static int ntfs_fuse_rename(const char *old_path, const char *new_path)
2689 ntfs_log_debug("rename: old: '%s' new: '%s'\n", old_path, new_path);
2694 stream_name_len = ntfs_fuse_parse_path(new_path, &path, &stream_name);
2732 old_path, new_path);
2738 ret = ntfs_fuse_link(old_path, new_path);
2744 ntfs_fuse_unlink(new_path);