Repository navigation
[Stable5] Exclude ext storage from quota - #5934
Conversation
Added argument to getFileInfo() to disable adding the size of mountpoints to a directory's size. Backport of 614e4d4
|
Hmm. There is always the option to no backport something if it can break stuff. :-) |
|
👍 |
Previously, the storage statistics were always for the root dir. This means that the upload button would always show the limit for the root dir, even when uploading to a shared dir or external storage. This fix adds a "dir" argument to getstoragestats.php. Partial backport of 31181e4
|
I've added a fix for the "free space" computation to not include quota when the target dir is not the home storage (ex: ext storage). Also, I've backported 31181e4 here as well. Please have another look. |
|
Test passed. |
|
Note to self: test uploading to shared dirs. I hope my above backport doesn't wake up other hidden bugs. |
|
I've verified this: uploading into another user's shared dir still works. I was afraid that maybe it would show s max upload size of 0 bytes after the getstoragestats backport. But it didn't, so all is well 😄 |
|
@ser72 do you mind testing this as part of your SMB tests ? Please review @icewind1991 (this is a backport), to confirm that it is ok. CC @felixboehm |
|
@PVince81 -- Glad to test -- what are the steps? |
Try the same steps by setting a quota to the user. |
|
👍 |
|
Thanks. @felixboehm also told me he had a test on his side and it worked correctly. Merging now. |
…uota [Stable5] Exclude ext storage from quota
Raised a backport PR because this needed additional changes to fix the quota calculation which was different in OC 5.
Please review @karlitschek @kabum @icewind1991 @DeepDiver1975