Repository navigation
rename the space root before purging it - #876
Merged
Merged
Conversation
9 tasks
aduffeck
requested changes
Oct 14, 2026
aduffeck
approved these changes
Oct 14, 2026
Member
Author
|
Tested locally with posix: purged spaces (500–1000 files) while 8–16 clients kept uploading and listing in them. 20/20 purges returned 204, nothing left on disk, no more |
micbar
added a commit
that referenced
this pull request
Oct 19, 2026
* rename the space root before purging it * fix: apply changes from code review
micbar
added a commit
that referenced
this pull request
Oct 19, 2026
* rename the space root before purging it * fix: apply changes from code review
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purging a space could fail with
unlinkat …: directory not empty. Requests that lock nodes of the space while it is being removed recreate.oc-nodes/locks/<id>.mlockinside it..oc-purge-<name>-<uuid>before removing itLockcreates the metadata dirs withMkdirinstead ofMkdirAll, so it can't bring back a removed space rootNeeded for opencloud-eu/opencloud#3710, which no longer ignores a failed purge when deleting a user.