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
Define timestruc_t for Lustre compatibility #8014
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8014 +/- ##
==========================================
- Coverage 78.55% 78.33% -0.22%
==========================================
Files 377 377
Lines 114165 114213 +48
==========================================
- Hits 89678 89466 -212
- Misses 24487 24747 +260
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
include/spl/sys/time.h
Outdated
| @@ -66,6 +66,9 @@ typedef struct timespec64 inode_timespec_t; | |||
| typedef struct timespec inode_timespec_t; | |||
| #endif | |||
|
|
|||
| /* Include for Lustre compatibility */ | |||
| #define timestruc_t inode_timespec_t | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: there's a small cstyle issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed in my latest push
Lustre 2.8 (and possibly other versions) are still using timestruc_t, which was removed in spl-0.7.10 in favor of inode_timespec_t. Add in a backwards compatibility #define for timestruc_t so that Lustre builds. Signed-off-by: Tony Hutter <hutter2@llnl.gov>
74a90d6
to
94b7768
Compare
Lustre 2.8 (and possibly other versions) are still using timestruc_t, which was removed in spl-0.7.10 in favor of inode_timespec_t. Add in a backwards compatibility #define for timestruc_t so that Lustre builds. Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes openzfs#8014
Lustre 2.8 (and possibly other versions) are still using timestruc_t, which was removed in spl-0.7.10 in favor of inode_timespec_t. Add in a backwards compatibility #define for timestruc_t so that Lustre builds. Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes openzfs#8014
Motivation and Context
Allow lustre to build against zfs
Description
Lustre 2.8 (and possibly other versions) are still using
timestruc_t, which was removed inspl-0.7.10in favour ofinode_timespec_t. Add in a backwards compatibility#definefortimestruc_tso that Lustre builds.Signed-off-by: Tony Hutter hutter2@llnl.gov
How Has This Been Tested?
Verified lustre built. This patch has been in the LLNL ZFS branch for the last three weeks (https://github.com/LLNL/zfs/releases/tag/zfs-0.7.11-2llnl).
Types of changes
Checklist:
Signed-off-by.