mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
78a6de2bd0
The function SetCSIDirectorySuffix was used only one per (long-lived, gloabl) journal object. It is simpler to construct the journal objects with this needed parameter: 1. As it is required to function and non-optional AFAICT 2. Removes the temptation to mutate global object 3. Reduces LOC with exact same functionality 4. SetCSIDirectorySuffix would not behave correctly if called a 2nd time anyway. Point 4. means that if you called the function twice to change the suffix when you previously had "csi.volumes.alice", you'd get "csi.volumes.alice.bob" instead of "csi.volumes.bob" what one would expect. Signed-off-by: John Mulligan <jmulligan@redhat.com> |
||
---|---|---|
.. | ||
cephfs_util.go | ||
cephuser.go | ||
controllerserver.go | ||
driver.go | ||
errors.go | ||
fsjournal.go | ||
identityserver.go | ||
nodeserver.go | ||
util.go | ||
volume.go | ||
volumemounter_test.go | ||
volumemounter.go | ||
volumeoptions.go |