Update driver/node.go
@@ -546,7 +546,7 @@ func (s *nodeService) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandV
defer s.mu.Unlock()
r := filesystem.NewResizeFs(&s.mounter)
- if _, err := r.Resize(device, req.GetVolumePath()); err != nil {
+ if _, err := r.Resize(device, vpath); err != nil {
return nil, status.Errorf(codes.Internal, "failed to resize filesystem %s (mounted at: %s): %v", vid, vpath, err)
}
