Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(CSI-241): disregard sync_on_close in mountmap per FS (#310)
### TL;DR Introduced a new `AsMapKey()` method for `MountOptions` to create version-agnostic map keys. ### What changed? - Added a new `AsMapKey()` method to the `MountOptions` struct in `mountoptions.go`. - This method creates a version of the mount options that excludes certain options (currently only `MountOptionSyncOnClose`) to be used as a map key. - Updated `mounter.go` to use `AsMapKey()` instead of `String()` when accessing or modifying the `mountMap`. ### How to test? Covered by unit testing ### Why make this change? This change allows for more consistent handling of mount options across different versions of the Weka cluster / client. By excluding version-specific options like `MountOptionSyncOnClose` from the map key, we can avoid unnecessary duplication of mounts and ensure that mounts with the same essential options are treated as identical, regardless of version-specific differences. ---
- Loading branch information