Skip to content

Commit

Permalink
add support for RWX and ROX. (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
VamsiSiddu-7 authored Aug 7, 2023
1 parent 7ccb8e4 commit 62a3b38
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,6 @@ func (s *service) exportFilesystem(ctx context.Context, req *csi.ControllerPubli
otherHostsWithAccess += len(readOnlyRootHosts)
if !foundIncompatible {
for _, host := range readOnlyRootHosts {
readHostList = append(readHostList, host)
if host == hostURL {
if am.Mode == csi.VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY {
foundIdempotent = true
Expand All @@ -1202,7 +1201,6 @@ func (s *service) exportFilesystem(ctx context.Context, req *csi.ControllerPubli

if !foundIncompatible && !foundIdempotent {
for _, host := range readWriteRootHosts {
readWriteHostList = append(readWriteHostList, hostURL)
if host == hostURL {
if am.Mode == csi.VolumeCapability_AccessMode_MULTI_NODE_READER_ONLY {
foundIncompatible = true
Expand Down

0 comments on commit 62a3b38

Please sign in to comment.