Skip to content
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

v4.1.x: fs/lustre: recognize soft-links on file open #12171

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

edgargabriel
Copy link
Member

@edgargabriel edgargabriel commented Dec 19, 2023

the llapi_file_get_stripe() function does not accept as an input file a soft-link. Check therefore whether the filename provided in File_open is a soft-link, retrieve the real file name in case it is, make sure it is also on a Lustre file system, and use the real filename in the llapi_file_get_stripe() function call instead.

Fixes issue #12141

Signed-off-by: Edgar Gabriel [email protected]
(cherry picked from commit c6a6c25)

This is a v4.1.x backport of #12161.

@github-actions github-actions bot added this to the v4.1.7 milestone Dec 19, 2023
the llapi_file_get_stripe() function does not accept as an input file a
soft-link. Check therefore whether the filename provided in File_open
is a soft-link, retrieve the real file name in case it is, make sure
it is also on a Lustre file system, and use the real filename in the
llapi_file_get_stripe() function call instead.

Fixes issue open-mpi#12141

Signed-off-by: Edgar Gabriel <[email protected]>
(cherry picked from commit c6a6c25)
@edgargabriel edgargabriel force-pushed the pr/lustre-link-fix-v4.1 branch from 2449b63 to ac31454 Compare December 19, 2023 22:48
@edgargabriel edgargabriel requested a review from qkoziol December 20, 2023 14:44
Turns out the sys/mount.h can be tricky to use
because various other system include files sometimes redefine
some of the symbols in this include file, leading
to compile failures.

Careful ordering of include files may solve the problem,
but here it simpler just to move the include of sys/mount.h
back to its original location.

related to open-mpi#12181

Signed-off-by: Howard Pritchard <[email protected]>
(cherry picked from commit d2af1d7)
Copy link
Member

@hppritcha hppritcha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compiles on the problematic system

@jsquyres jsquyres merged commit ec9d195 into open-mpi:v4.1.x Jan 8, 2024
9 checks passed
@jsquyres jsquyres changed the title fs/lustre: recognize soft-links on file open v4.1.x: fs/lustre: recognize soft-links on file open Jan 8, 2024
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.

4 participants