Whamcloud - gitweb
LU-6464 ldiskfs: 64bit pointers in ext4_map_inode_page()
[fs/lustre-release.git] / config / lustre-build-zfs.m4
index 455977d..dd14cc6 100644 (file)
@@ -414,6 +414,18 @@ your distribution.
                        AC_DEFINE(HAVE_SA_SPILL_ALLOC, 1,
                                [Have sa_spill_alloc in ZFS])
                ])
+               LB_CHECK_COMPILE([if zfs defines spa_maxblocksize],
+               spa_maxblocksize, [
+                       #include <sys/spa.h>
+               ],[
+                       spa_t *spa = NULL;
+                       int size;
+
+                       size = spa_maxblocksize(spa);
+               ],[
+                       AC_DEFINE(HAVE_SPA_MAXBLOCKSIZE, 1,
+                               [Have spa_maxblocksize in ZFS])
+               ])
        ])
 
        AM_CONDITIONAL(ZFS_ENABLED, [test "x$enable_zfs" = xyes])