Skip to content

Upload cp instead of mv #3265

Closed
Closed

Description

@wuast94

Describe the bug

When uplaoding with tus it creates a temp uplaod file which is expected, but when done it copy the full file instead of just move.
This also writes double to storage which increase wear.

Steps to reproduce

  1. Upload Huge file and look at disk usage/stats

Expected behavior

Check if its the the same FS and then just mv instead of cp

Actual behavior

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

Details

image: opencloudeu/opencloud:7.2.3
hostPath:
  path: /mnt/cephfs/k8s/opencloud
  type: Directory

Additional context

Add any other context about the problem here.

Activity

  1. rhafer commented on Aug 19, 2026

    @rhafer
    Member

    This has been addressed in opencloud-eu/reva#720 if a move (Rename) is possible we use that instead of copying the uploaded file.

  2. moved this from Qualification to Done in OpenCloud Team Boardon Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions