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

Update available size in Storage under lock #32

Closed
aravindavk opened this issue Aug 13, 2019 · 1 comment · Fixed by #131
Closed

Update available size in Storage under lock #32

aravindavk opened this issue Aug 13, 2019 · 1 comment · Fixed by #131
Labels
Milestone

Comments

@aravindavk
Copy link
Collaborator

@aravindavk aravindavk commented Aug 13, 2019

When a PV is created(subdir/virtblock), Free size is updated to a file. Use fcntl lock while updating the file to prevent wrong updates during parallel PV creation.

https://github.com/aravindavk/kadalu/blob/master/csi/volumeutils.py#L106-L115

@aravindavk

This comment has been minimized.

Copy link
Collaborator Author

@aravindavk aravindavk commented Aug 13, 2019

@amarts amarts added this to the v0.5 milestone Dec 31, 2019
@amarts amarts added the enhancement label Dec 31, 2019
aravindavk added a commit that referenced this issue Jan 16, 2020
Fixes: #32
Signed-off-by: Aravinda Vishwanathapura <mail@aravindavk.in>
aravindavk added a commit that referenced this issue Jan 16, 2020
…#131)

Fixes: #32
Signed-off-by: Aravinda Vishwanathapura <mail@aravindavk.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.