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

follow symlinks under /proc #43

Closed
wants to merge 1 commit into from

Conversation

ofaaland
Copy link
Contributor

Under Lustre 2.8 and 2.10 at least, /proc/fs/lustre/osc contains
links to objects in /proc/fs/lustre/osc. Prior to Lustre 2.4 at
least, there were subdirectories there. The lmt code for
reading /proc directories, proc_readdir(), takes a flag to indicate
whether files or subdirectories are being searched for.

If the flag for finding subdirectories, PROC_READDIR_NOFILE, is
passed, symlinks should be not be skipped as they may point to
subdirectories.

Credit to @6speedlt1 on github for identifying the fix.

Fixes #30.

Under Lustre 2.8 and 2.10 at least, /proc/fs/lustre/osc contains
links to objects in /proc/fs/lustre/osc.  Prior to Lustre 2.4 at
least, there were subdirectories there.  The lmt code for
reading /proc directories, proc_readdir(), takes a flag to indicate
whether files or subdirectories are being searched for.

If the flag for finding subdirectories, PROC_READDIR_NOFILE, is
passed, symlinks should be not be skipped as they may point to
subdirectories.

Credit to @6speedlt1 on github for identifying the fix.

Fixes LLNL#30.

Signed-off-by: Olaf Faaland <[email protected]>
@ofaaland
Copy link
Contributor Author

ofaaland commented Nov 11, 2019

Cherry-picked to master at 8eed365

@ofaaland ofaaland closed this Nov 11, 2019
@ofaaland ofaaland deleted the b-symlinks-under-proc branch November 11, 2019 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

osc metric fails with message "lmtmetric: osc metric: No such file or directory"
3 participants