Lines Matching refs:old_path
2355 static int ntfs_fuse_link(const char *old_path, const char *new_path) in ntfs_fuse_link() argument
2367 if (ntfs_fuse_is_named_data_stream(old_path)) in ntfs_fuse_link()
2375 ni = ntfs_pathname_to_inode(ctx->vol, NULL, old_path); in ntfs_fuse_link()
2400 samedir = !strncmp(old_path, path, strlen(path)) in ntfs_fuse_link()
2401 && (old_path[strlen(path)] == '/'); in ntfs_fuse_link()
2404 && ((!samedir && !ntfs_allowed_dir_access(&security,old_path, in ntfs_fuse_link()
2587 static int ntfs_fuse_safe_rename(const char *old_path, in ntfs_fuse_safe_rename() argument
2602 ret = ntfs_fuse_link(old_path, new_path); in ntfs_fuse_safe_rename()
2606 ret = ntfs_fuse_unlink(old_path); 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
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()
2718 stream_name_len = ntfs_fuse_parse_path(old_path, 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()
2741 ret = ntfs_fuse_unlink(old_path); in ntfs_fuse_rename()