-
Notifications
You must be signed in to change notification settings - Fork 8
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
fix(CSI-241): fix unmountWithOptions to use map key rather than options.String() #317
Merged
Conversation
This file contains 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
This was referenced Sep 3, 2024
Merged
Graphite Automations"Request reviewers once CI passes" took an action on this PR • (09/03/24)1 reviewer was added to this PR based on Sergey Berezansky's automation. |
This was referenced Sep 5, 2024
This was referenced Sep 11, 2024
34ecc36
to
8ba8f94
Compare
58ac8ed
to
8037bc4
Compare
8ba8f94
to
1ee9988
Compare
8037bc4
to
1269d0d
Compare
1ee9988
to
e7e8ebf
Compare
1269d0d
to
5945aac
Compare
e7e8ebf
to
16800ea
Compare
5945aac
to
4ad8961
Compare
16800ea
to
ec3c387
Compare
4ad8961
to
ae27838
Compare
ec3c387
to
221116b
Compare
ae27838
to
dabc35c
Compare
Merge activity
|
dabc35c
to
4740ca8
Compare
221116b
to
21810f0
Compare
4740ca8
to
50a5d3b
Compare
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.
TL;DR
Updated
nfsMounter
to useAsMapKey()
method for mount options.What changed?
Modified the
nfsMounter
struct innfsmounter.go
to use theAsMapKey()
method instead ofString()
when accessing and manipulating themountMap
. This change affects theNewMount
andunmountWithOptions
functions.How to test?
NewMount
with various mount options.mountMap
using theAsMapKey()
method.unmountWithOptions
and ensure the correct mount is accessed and removed from the map.Why make this change?
The
AsMapKey()
method likely provides a more consistent or appropriate key for themountMap
than theString()
method. This change may improve the reliability of mount tracking and management, potentially avoiding issues related to inconsistent key generation or comparison.