Details
-
Task
-
Resolution: Fixed
-
Major
-
None
-
Centos 7.2, ZFS 0.6.5-158, lustre-2.58.50-3.10.0_327
-
9223372036854775807
Description
The API for the ZFS dmu_prefetch routine has changed. The new routine has both more parameters and the parameters in a different order.
Current work around is to append a hack to the ZFS include/sys/dmu.h used for building lustre.
cat <<DELIM >> include/sys/dmu.h #ifndef dmu_prefetch #pragma GCC diagnostic push #pragma GCC diagnostic warning "-Wunused-function" #pragma GCC diagnostic ignored "-Wunused-function" static inline void dmu_prefetch_old(objset_t *os, uint64_t object, uint64_t offset, uint64_t len) { dmu_prefetch(os, object, 0, offset, len, 0); } #define dmu_prefetch dmu_prefetch_old #pragma GCC diagnostic pop #define dmu_prefetch dmu_prefetch_old #endif DELIM
Attachments
Issue Links
- is duplicated by
-
LU-8423 error: too few arguments to function 'dmu_prefetch' dmu_prefetch(dev->od_os, *oid, 0, 0);
-
- Closed
-