Skip to content

Upload cp instead of mv #3265

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Qualification

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions