Skip to content

opal_path_nfs: ensure arrays are always long enough #4179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 6, 2017

Conversation

jsquyres
Copy link
Member

@jsquyres jsquyres commented Sep 6, 2017

This PR is an alternative to #4176. Both PRs solve the problem -- this one just allows us to check all mount points (even if there are more than 512). Which may seem overkill. But what the hell -- isn't overkill the Open MPI Way?

(specifically: only #4716 or this one should be merged -- not both)


This test used to have fixed-sized arrays for the mounts that it was checking. However, we periodically run across machines with more mounts than can fit into those fixed-size arrays. Rather than periodically increasing the size of those arrays (after re-discovering that the error is due to fixed-size arrays), just count how many entries there are and make arrays that are big enough.

Additionally, add a check to ensure that we don't go over the max size of the array when reading/filling them.

Signed-off-by: Jeff Squyres jsquyres@cisco.com

This test used to have fixed-sized arrays for the mounts that it was
checking.  However, we periodically run across machines with more
mounts than can fit into those fixed-size arrays.  Rather than
periodically increasing the size of those arrays (after re-discovering
that the error is due to fixed-size arrays), just count how many
entries there are and make arrays that are big enough.

Additionally, add a check to ensure that we don't go over the max size
of the array when reading/filling them.

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
@bwbarrett
Copy link
Member

Let's go with this over #4176.

@jsquyres jsquyres merged commit 41c7230 into open-mpi:master Sep 6, 2017
@jsquyres jsquyres deleted the pr/opal-path-nfs-razzem-frazzem branch September 6, 2017 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants