X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=config%2Flustre-build-zfs.m4;h=df78230761c555a4e73b6552439e9eab0b35855a;hp=f4c46db2e2ed3e961760377419aba587f859ff42;hb=369e02e84f39565195e08f043ab0421d2d3bd185;hpb=7ee34b627964031632d7757b7fab76fd79edff2f;ds=sidebyside diff --git a/config/lustre-build-zfs.m4 b/config/lustre-build-zfs.m4 index f4c46db..df78230 100644 --- a/config/lustre-build-zfs.m4 +++ b/config/lustre-build-zfs.m4 @@ -371,5 +371,20 @@ your distribution. ]) ]) + AS_IF([test x$enable_zfs = xyes], [ + AC_MSG_CHECKING([if zfs defines dsl_pool_config_enter/exit]) + LB_LINUX_TRY_COMPILE([ + #include + ],[ + dsl_pool_config_enter(NULL, FTAG); + ],[ + AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_DSL_POOL_CONFIG, 1, + [Have dsl_pool_config_enter/exit in ZFS]) + ],[ + AC_MSG_RESULT([no]) + ]) + ]) + AM_CONDITIONAL(ZFS_ENABLED, test x$enable_zfs = xyes) ])