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.
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.