Skip to content

Commit

Permalink
fixup! add check for shared volumes in getVolumeStats
Browse files Browse the repository at this point in the history
Signed-off-by: dahuang <[email protected]>
  • Loading branch information
dahuang-purestorage committed Feb 21, 2024
1 parent b015850 commit 9f698af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csi/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ func (s *OsdCsiServer) NodeGetVolumeStats(ctx context.Context, req *csi.NodeGetV
}

var attachPathMatch bool
sharedPath := fmt.Sprintf("%s/%s", api.SharedVolExportPrefix, id)
for _, attachPath := range vol.AttachPath {
sharedPath := fmt.Sprintf("%s/%s", api.SharedVolExportPrefix, id)
if attachPath == path || attachPath == sharedPath {
attachPathMatch = true
}
Expand Down

0 comments on commit 9f698af

Please sign in to comment.