@@ -364,8 +364,8 @@ func getInternalMountPath(workingMountDir string, vol *nfsVolume) string {
364
364
365
365
// Get internal path where the volume is created
366
366
// The reason why the internal path is "workingDir/subDir/subDir" is because:
367
- // * the semantic is actually "workingDir/volId/subDir" and volId == subDir.
368
- // * we need a mount directory per volId because you can have multiple
367
+ // - the semantic is actually "workingDir/volId/subDir" and volId == subDir.
368
+ // - we need a mount directory per volId because you can have multiple
369
369
// CreateVolume calls in parallel and they may use the same underlying share.
370
370
// Instead of refcounting how many CreateVolume calls are using the same
371
371
// share, it's simpler to just do a mount per request.
@@ -385,10 +385,11 @@ func getVolumeIDFromNfsVol(vol *nfsVolume) string {
385
385
386
386
// Given a CSI volume id, return a nfsVolume
387
387
// sample volume Id:
388
- // new volumeID:
389
- // nfs-server.default.svc.cluster.local#share#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
390
- // nfs-server.default.svc.cluster.local#share#subdir#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
391
- // old volumeID: nfs-server.default.svc.cluster.local/share/pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
388
+ //
389
+ // new volumeID:
390
+ // nfs-server.default.svc.cluster.local#share#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
391
+ // nfs-server.default.svc.cluster.local#share#subdir#pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
392
+ // old volumeID: nfs-server.default.svc.cluster.local/share/pvc-4bcbf944-b6f7-4bd0-b50f-3c3dd00efc64
392
393
func getNfsVolFromID (id string ) (* nfsVolume , error ) {
393
394
var server , baseDir , subDir , uuid string
394
395
segments := strings .Split (id , separator )
0 commit comments