Lines Matching refs:new_path
1030 static int ntfs_fuse_link(const char *old_path, const char *new_path)
1040 if (ntfs_fuse_is_named_data_stream(new_path))
1042 path = strdup(new_path);
1175 const char *new_path,
1182 ret = ntfs_fuse_link(new_path, tmp);
1186 ret = ntfs_fuse_unlink(new_path);
1189 ret = ntfs_fuse_link(old_path, new_path);
1195 if (ntfs_fuse_unlink(new_path))
1203 if (ntfs_fuse_link(tmp, new_path)) {
1206 "to '%s'", new_path, tmp);
1214 static int ntfs_fuse_rename_existing_dest(const char *old_path, const char *new_path)
1222 len = strlen(new_path) + strlen(ext) + 10 + 1; /* wc(str(2^32)) + \0 */
1227 ret = snprintf(tmp, len, "%s%s%010d", new_path, ext, ++ntfs_sequence);
1232 ret = ntfs_fuse_safe_rename(old_path, new_path, tmp);
1238 static int ntfs_fuse_rename(const char *old_path, const char *new_path)
1245 ntfs_log_debug("rename: old: '%s' new: '%s'\n", old_path, new_path);
1250 stream_name_len = ntfs_fuse_parse_path(new_path, &path, &stream_name);
1268 ret = ntfs_fuse_rename_existing_dest(old_path, new_path);
1272 ret = ntfs_fuse_link(old_path, new_path);
1278 ntfs_fuse_unlink(new_path);