Open kcgthb opened 4 years ago
Thanks for the report, @kcgthb . The intent of this function was to pull the stat info from Lustre rather than a stat() call during a walk. My understanding is that this may provide inaccurate info for some fields like mtime, but it's faster. Having said that, we have the calls that invoke these functions commented out, so we're not using them at all. As a fix to build on this newer version of Lustre, we could drop or comment out these functions.
As a test, can you build successfully if you comment out the code (#if 0
/ #endif
) from:
https://github.com/hpc/mpifileutils/blob/b38043e46605c9c921f0c29150f89f53b030eaa5/src/common/mfu_flist_walk.c#L134
to:
https://github.com/hpc/mpifileutils/blob/b38043e46605c9c921f0c29150f89f53b030eaa5/src/common/mfu_flist_walk.c#L295
I'd like to see whether there are other spots where our Lustre support has compile-time issues with that newer version of Lustre. The machine I have access to has an older version of Lustre, so it's hard for me to test.
Commenting out the whole block: https://github.com/hpc/mpifileutils/blob/b38043e46605c9c921f0c29150f89f53b030eaa5/src/common/mfu_flist_walk.c#L134-L295 allows compilation to complete successfully, indeed. So no other portions of the code seem to be affected.
Good to hear. Thanks for checking. I'll push a commit to delete or comment out that section and retag v0.10 before we mark the final release.
For future reference in case adding this back, the new struct has an lmd_stx field that returns an lstatx_t structure:
The statx operation allows one to chose which fields in the stat struct are actually needed.
For faster stat operations on Lustre, it would be nice to support this feature again someday.
Hi!
I got the following error when trying to compile mpifileutils 0.10 with Lustre 2.13.0: