Whamcloud - gitweb
LU-14776 zfs: fix Ubuntu 20 HWE build issues 49/44749/3
authorJames Simmons <jsimmons@infradead.org>
Wed, 25 Aug 2021 17:17:51 +0000 (11:17 -0600)
committerOleg Drokin <green@whamcloud.com>
Sat, 11 Sep 2021 06:21:49 +0000 (06:21 +0000)
commitb1723622b88e693cac1d65bc317188f256a82558
tree5da0c912d56829dc87d7595895039cbae193a023
parentbeebdc836a8ab8e63350b7031599149bf9c55199
LU-14776 zfs: fix Ubuntu 20 HWE build issues

With newer Ubuntu systems using ZFS dkms have the following build
errors:

    In file included from zfs/2.0.2/source/include/sys/arc.h:32,
                 from lustre/osd-zfs/osd_internal.h:50,
                 from lustre/osd-zfs/osd_handler.c:51:
    zfs/2.0.2/source/include/sys/zfs_context.h:45:10:
                 fatal error: sys/types.h: No such file or directory
    45 | #include <sys/types.h>
       |          ^~~~~~~~~~~~~
    compilation terminated.

This is due to layout of the tree containing the needed headers.
Include those paths in build system.

Test-Parameters: trivial
Change-Id: I453830c4111ad88ec655d3d7d0ee51627331cb0b
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/44749
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
config/lustre-build-linux.m4
lustre/osd-zfs/Makefile.in