]> git.proxmox.com Git - zfsonlinux.git/blob - spl-patches/0003-Define-timestruc_t-for-Lustre-compatibility.patch
spl: update submodule to debian/0.7.12-1
[zfsonlinux.git] / spl-patches / 0003-Define-timestruc_t-for-Lustre-compatibility.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: Tony Hutter <hutter2@llnl.gov>
3 Date: Fri, 26 Oct 2018 01:24:24 -0400
4 Subject: [PATCH] Define timestruc_t for Lustre compatibility
5
6 Lustre 2.8 (and possibly other versions) are still using timestruc_t,
7 which was removed in spl-0.7.10 in favor of inode_timespec_t. Add
8 in a backwards compatibility #define for timestruc_t so that Lustre
9 builds.
10
11 Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
12 Reviewed-by: George Melikov <mail@gmelikov.ru>
13 Signed-off-by: Tony Hutter <hutter2@llnl.gov>
14 Closes #8014
15
16 Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
17 ---
18 include/sys/time.h | 3 +++
19 1 file changed, 3 insertions(+)
20
21 diff --git a/include/sys/time.h b/include/sys/time.h
22 index 59557af..9029671 100644
23 --- a/include/sys/time.h
24 +++ b/include/sys/time.h
25 @@ -66,6 +66,9 @@ typedef struct timespec64 inode_timespec_t;
26 typedef struct timespec inode_timespec_t;
27 #endif
28
29 +/* Include for Lustre compatibility */
30 +#define timestruc_t inode_timespec_t
31 +
32 static inline void
33 gethrestime(inode_timespec_t *ts)
34 {