Skip to content

Only use quota stream wrapper on "files" - #16613

Merged
MorrisJobke merged 1 commit into
masterfrom
quota-onlyforfiles
May 28, 2015
Merged

MorrisJobke merged 1 commit into
masterfrom
quota-onlyforfiles

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Prevent using the quota stream wrapper on trashbin folders and other
metadata folders

Fixes #16187

Please review @icewind1991 @schiesbn @nickvergessen

Note: this fix is a bit ugly because it assumes that we only ever wrap the HomeStorage with the Quota storage wrapper. External storage is never wrapped with the quota storage wrapper, so this will work.

If you guys have better ideas, let me know.

Prevent using the quota stream wrapper on trashbin folders and other
metadata folders
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@PVince81 PVince81 added this to the 8.1-current milestone May 28, 2015
@karlitschek

Copy link
Copy Markdown
Contributor

👍

@ghost

ghost commented May 28, 2015

Copy link
Copy Markdown

Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/12575/
🚀 Test PASSed.🚀
chuck

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and works 👍

MorrisJobke added a commit that referenced this pull request May 28, 2015
Only use quota stream wrapper on "files"
@MorrisJobke
MorrisJobke merged commit 54613de into master May 28, 2015
@MorrisJobke
MorrisJobke deleted the quota-onlyforfiles branch May 28, 2015 17:44
@PVince81

Copy link
Copy Markdown
Contributor Author

I'd still like to hear @icewind1991's expert opinion.

@karlitschek backport to OC 8 ?

@karlitschek

Copy link
Copy Markdown
Contributor

backport would be good 👍

@PVince81

Copy link
Copy Markdown
Contributor Author

Backport PR here #16630

@MorrisJobke

Copy link
Copy Markdown
Contributor

There is only one problem with 0B quota users. Once the file is deleted and moved to the trahsbin, the file is cleaned up immeadiately, because the trashbin deletes files from trashbin once the trashbin fills more then 50% of the quota (at 0B this isn't hard ;)). Should we remove the cleanup of the trashbin? But then it's also bad, because the trashbin is never cleaned up. maybe add a time constraint (e.g. clean all files that are longer than 30 days in trash)?

@schiesbn @PVince81 Opinion on this? Should I open a new ticket?

@PVince81

PVince81 commented Jun 2, 2015

Copy link
Copy Markdown
Contributor Author

This is by design.
If the design needs to be changed or new options need to be added, please raise a enhancement ticket.

@PVince81

PVince81 commented Jun 2, 2015

Copy link
Copy Markdown
Contributor Author

The best part would be if we had trashbin and versions have their own storages, as described here: #11963
This way it would be possible to specify a quota for the trashbin or others.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

User of remaining capacity limit at the time of the 0 byte, not be able to delete the files on the shared folder.

4 participants