mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
Fix obsolete comment
Had a stray comment that got left behind during refactoring, move it back to where it's relevant and reword it a bit to fit the finished product.
This commit is contained in:
parent
b5b8e46460
commit
72edf06916
@ -71,6 +71,8 @@ func (ns *NodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
|
|||||||
return &csi.NodePublishVolumeResponse{}, nil
|
return &csi.NodePublishVolumeResponse{}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if our access mode is a simple SINGLE_NODE_WRITER we're going to ignore the SC directive and use the
|
||||||
|
// watcher still
|
||||||
ignoreMultiWriterEnabled := true
|
ignoreMultiWriterEnabled := true
|
||||||
if req.VolumeCapability.AccessMode.Mode != csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER {
|
if req.VolumeCapability.AccessMode.Mode != csi.VolumeCapability_AccessMode_SINGLE_NODE_WRITER {
|
||||||
ignoreMultiWriterEnabled = false
|
ignoreMultiWriterEnabled = false
|
||||||
@ -80,7 +82,6 @@ func (ns *NodeServer) NodePublishVolume(ctx context.Context, req *csi.NodePublis
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
// Check access mode settings in the request, even if SC is RW-Many, if the request is a normal Single Writer volume, we ignore this setting and proceed as normal
|
|
||||||
|
|
||||||
volOptions.VolName = volName
|
volOptions.VolName = volName
|
||||||
// Mapping RBD image
|
// Mapping RBD image
|
||||||
|
Loading…
Reference in New Issue
Block a user