LLNL / lmt

Lustre Monitoring Tools
GNU General Public License v2.0
67 stars 21 forks source link

follow symlinks under /proc #43

Closed ofaaland closed 4 years ago

ofaaland commented 4 years ago

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.

ofaaland commented 4 years ago

Cherry-picked to master at 8eed365