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

Grant locking #4117

Merged
merged 59 commits into from
Aug 21, 2023
Merged

Grant locking #4117

merged 59 commits into from
Aug 21, 2023

Conversation

butonic
Copy link
Contributor

@butonic butonic commented Aug 17, 2023

The jsoncs3 share manager now uses etags instead of mtimes to determine when metadata needs to be updated.
As a precondtition we had to change decomposedfs as well: to consistently calculate the etag for the file content
we now store the mtime in the metadata and use the metadata lock for atomicity.

also fixes:

aduffeck and others added 30 commits August 16, 2023 15:51
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic pushed a commit to aduffeck/ocis that referenced this pull request Aug 18, 2023
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic pushed a commit to aduffeck/ocis that referenced this pull request Aug 18, 2023
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic pushed a commit to aduffeck/ocis that referenced this pull request Aug 18, 2023
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic pushed a commit to aduffeck/ocis that referenced this pull request Aug 18, 2023
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic pushed a commit to aduffeck/ocis that referenced this pull request Aug 18, 2023
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic pushed a commit to aduffeck/ocis that referenced this pull request Aug 18, 2023
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic pushed a commit to aduffeck/ocis that referenced this pull request Aug 21, 2023
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic and others added 3 commits August 21, 2023 09:45
Co-authored-by: Michael Barz <michael.barz@zeitgestalten.eu>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic pushed a commit to aduffeck/ocis that referenced this pull request Aug 21, 2023
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Copy link
Contributor

@kobergj kobergj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Just some questions

pkg/share/manager/jsoncs3/providercache/providercache.go Outdated Show resolved Hide resolved
pkg/storage/utils/metadata/cs3.go Show resolved Hide resolved
pkg/storage/utils/metadata/cs3.go Outdated Show resolved Hide resolved
pkg/storage/utils/metadata/cs3.go Outdated Show resolved Hide resolved
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
butonic pushed a commit to aduffeck/ocis that referenced this pull request Aug 21, 2023
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
@butonic butonic merged commit 010c817 into cs3org:edge Aug 21, 2023
@aduffeck aduffeck deleted the grant-locking branch September 4, 2023 06:25
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

Successfully merging this pull request may close these issues.

4 participants