Skip to content

[master] Fixed used space to be based on unencrypted size - #7624

Merged
PVince81 merged 2 commits into
masterfrom
enc-encryptedusedspacefix
Mar 10, 2014
Merged

PVince81 merged 2 commits into
masterfrom
enc-encryptedusedspacefix

Conversation

@PVince81

@PVince81 PVince81 commented Mar 7, 2014

Copy link
Copy Markdown
Contributor

This fixes the "used space" to be based on the unencrypted size, not encrypted size, to be consistent with how quota/space is handled when encryption is enabled.

The prerequisite was that unencrypted size of folders is propagated to the root folder.

Please review @karlitschek @schiesbn @ser72

@PVince81

PVince81 commented Mar 7, 2014

Copy link
Copy Markdown
Contributor Author

Still testing, I'm having some strange behavior regarding to size calculation.

@ghost

ghost commented Mar 7, 2014

Copy link
Copy Markdown

@PVince81

PVince81 commented Mar 7, 2014

Copy link
Copy Markdown
Contributor Author

I've discovered this issue while testing: #7626

This PR here is still valid. At least the time where the truncation might happen is postponed...

Please review.

@schiessle

Copy link
Copy Markdown
Contributor

code looks good 👍
Also saw that it works on @PVince81 laptop.

@karlitschek

Copy link
Copy Markdown
Contributor

👍 as discussed

This fixes the "used space" to be based on the unencrypted size, not
encrypted size, to be consistent with how quota/space is handled when
encryption is enabled
@PVince81

PVince81 commented Mar 7, 2014

Copy link
Copy Markdown
Contributor Author

I fixed the unit test and added new ones: 48d63a6#diff-0a489e99116bf247b98206f478219ee4R56

@ghost

ghost commented Mar 7, 2014

Copy link
Copy Markdown

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 7 new/changed issues, 5 added/modified code elements

@DeepDiver1975

Copy link
Copy Markdown
Contributor

@owncloud-bot retest this please

@ghost

ghost commented Mar 7, 2014

Copy link
Copy Markdown

PVince81 pushed a commit that referenced this pull request Mar 10, 2014
[master] Fixed used space to be based on unencrypted size
@PVince81
PVince81 merged commit 26513bc into master Mar 10, 2014
@PVince81
PVince81 deleted the enc-encryptedusedspacefix branch March 10, 2014 08:38
@PVince81

Copy link
Copy Markdown
Contributor Author

@karlitschek backport to stable6 ? The prerequisites for this were already backported a while ago.

@karlitschek

Copy link
Copy Markdown
Contributor

yes please

@PVince81

Copy link
Copy Markdown
Contributor Author

Backported to stable6 as 56dfa5d and e627831

@PVince81

Copy link
Copy Markdown
Contributor Author

Something weird happened to these commits, I can't find them on stable6 any more... This is the reason why the test in #7834 is failing (saved by unit tests!)

@PVince81

Copy link
Copy Markdown
Contributor Author

For some reason the two commits I mentionned are on one of my branches.
I suppose I've probably cherry picked them to the wrong place.

I've now backported them properly to stable6:
a70b99f and eacb4b3

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants