Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleted files in shared folder take twice the disk space #7329

Closed
GreenArchon opened this issue Nov 28, 2017 · 1 comment
Closed

Deleted files in shared folder take twice the disk space #7329

GreenArchon opened this issue Nov 28, 2017 · 1 comment

Comments

@GreenArchon
Copy link
Contributor

GreenArchon commented Nov 28, 2017

Steps to reproduce

  1. Create user1, user2
  2. Create folder1 from user1 and share it with user2
  3. Create a big file (few GBs) in folder1
  4. Login as user2
  5. Go to folder1 and delete the big file

Expected behaviour

Everything is smooth. After a reasonably brief loading period, both user1 and user2 can see this file on their deleted files in the web ui. On the file system, the file is moved somewhere and there's magic code/database glue to be able to get the location of the file from both user1 and user2.

Actual behaviour

The file has the little loading icon on it until a timeout with an error deleting file "bigFile". The file actually gets deleted and both user1 and user2 can see this file on their deleted files in the web ui. However, the file is now in both data/user{1,2}/files_trashbin/files/bigFile and taking twice the disk space it used before deletion.

Server configuration

Nextcloud version: 11.0.5 and 13.0beta1

Updated from an older Nextcloud/ownCloud or fresh install: Updated and clean git install

List of activated apps:
Files_trashbin, versions, etc. (default git install)

Are you using external storage, if yes which one: local

Are you using encryption: no

Nextcloud log (data/nextcloud.log)

None

Extra thoughts

I realize this behaviour is probably a feature (for the simplicity it brings to trashbin handling), not a bug. However deleting ~100 GB of old files only to see it now take 200 GB of disk space was really surprising. Also note that this behaviour is also probably similar with external storage [#7223].

@MorrisJobke
Copy link
Member

The file has the little loading icon on it until a timeout with an error deleting file "bigFile". The file actually gets deleted and both user1 and user2 can see this file on their deleted files in the web ui. However, the file is now in both data/user{1,2}/files_trashbin/files/bigFile and taking twice the disk space it used before deletion.

This is intentional so that both (deleter and owner) can restore the file afterwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants