Lines Matching refs:new_path
2355 static int ntfs_fuse_link(const char *old_path, const char *new_path) in ntfs_fuse_link() argument
2369 if (ntfs_fuse_is_named_data_stream(new_path)) in ntfs_fuse_link()
2371 path = strdup(new_path); in ntfs_fuse_link()
2588 const char *new_path, in ntfs_fuse_safe_rename() argument
2595 ret = ntfs_fuse_link(new_path, tmp); in ntfs_fuse_safe_rename()
2599 ret = ntfs_fuse_unlink(new_path); in ntfs_fuse_safe_rename()
2602 ret = ntfs_fuse_link(old_path, new_path); in ntfs_fuse_safe_rename()
2608 if (ntfs_fuse_unlink(new_path)) in ntfs_fuse_safe_rename()
2616 if (ntfs_fuse_link(tmp, new_path)) { in ntfs_fuse_safe_rename()
2619 "to '%s'", new_path, tmp); in ntfs_fuse_safe_rename()
2630 "as '%s'", new_path, tmp); in ntfs_fuse_safe_rename()
2635 static int ntfs_fuse_rename_existing_dest(const char *old_path, const char *new_path) in ntfs_fuse_rename_existing_dest() argument
2646 len = strlen(new_path) + strlen(ext) + 10 + 1; /* wc(str(2^32)) + \0 */ in ntfs_fuse_rename_existing_dest()
2651 ret = snprintf(tmp, len, "%s%s%010d", new_path, ext, ++ntfs_sequence); in ntfs_fuse_rename_existing_dest()
2665 || ntfs_allowed_dir_access(&security, new_path, in ntfs_fuse_rename_existing_dest()
2668 ret = ntfs_fuse_safe_rename(old_path, new_path, tmp); in ntfs_fuse_rename_existing_dest()
2672 ret = ntfs_fuse_safe_rename(old_path, new_path, tmp); in ntfs_fuse_rename_existing_dest()
2679 static int ntfs_fuse_rename(const char *old_path, const char *new_path) in ntfs_fuse_rename() argument
2688 ntfs_log_debug("rename: old: '%s' new: '%s'\n", old_path, new_path); in ntfs_fuse_rename()
2693 stream_name_len = ntfs_fuse_parse_path(new_path, &path, &stream_name); in ntfs_fuse_rename()
2731 old_path, new_path); in ntfs_fuse_rename()
2737 ret = ntfs_fuse_link(old_path, new_path); in ntfs_fuse_rename()
2743 ntfs_fuse_unlink(new_path); in ntfs_fuse_rename()