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

Implementation of CS3APIs Locks in the CephFS driver #4280

Merged
merged 11 commits into from
Oct 26, 2023

Conversation

glpatcern
Copy link
Member

@glpatcern glpatcern commented Oct 24, 2023

This implementation follows the eosfs one, with the notable difference that we use flock calls to CephFS. If those locks would follow the POSIX semantic, they would be gone by the time we close the file, which is undesirable here. Will test with WOPI once we put things all together.

@update-docs
Copy link

update-docs bot commented Oct 24, 2023

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

pkg/storage/fs/cephfs/cephfs.go Show resolved Hide resolved
pkg/storage/fs/cephfs/cephfs.go Outdated Show resolved Hide resolved
pkg/storage/fs/cephfs/cephfs.go Outdated Show resolved Hide resolved
pkg/storage/fs/cephfs/cephfs.go Outdated Show resolved Hide resolved
pkg/storage/fs/cephfs/cephfs.go Show resolved Hide resolved
pkg/storage/fs/cephfs/cephfs.go Outdated Show resolved Hide resolved
pkg/storage/fs/cephfs/cephfs.go Outdated Show resolved Hide resolved
pkg/storage/fs/cephfs/cephfs.go Outdated Show resolved Hide resolved
gmgigi96
gmgigi96 previously approved these changes Oct 25, 2023
@glpatcern
Copy link
Member Author

Thanks Javi! Will look into this tomorrow once I'm back

Co-authored-by: Javier Ferrer <javilol@gmail.com>
glpatcern and others added 4 commits October 26, 2023 08:19
Co-authored-by: Javier Ferrer <javilol@gmail.com>
Co-authored-by: Javier Ferrer <javilol@gmail.com>
Co-authored-by: Javier Ferrer <javilol@gmail.com>
Co-authored-by: Javier Ferrer <javilol@gmail.com>
@glpatcern glpatcern requested a review from javfg October 26, 2023 06:33
@gmgigi96 gmgigi96 merged commit d38ed8b into cs3org:master Oct 26, 2023
24 checks passed
javfg added a commit to javfg/reva that referenced this pull request Nov 2, 2023
* Refactoring

* Implemented locking for CephFS

* Minor alignments in the EOS driver

* Cleanup

* Alternate implementation of GetLock

* Applied suggestions

Co-authored-by: Javier Ferrer <javilol@gmail.com>

* Applied suggestions

Co-authored-by: Javier Ferrer <javilol@gmail.com>

* Applied suggestions

Co-authored-by: Javier Ferrer <javilol@gmail.com>

* Applied suggestions

Co-authored-by: Javier Ferrer <javilol@gmail.com>

* Applied suggestions

Co-authored-by: Javier Ferrer <javilol@gmail.com>

* Further fixes

---------

Co-authored-by: Javier Ferrer <javilol@gmail.com>
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.

3 participants