mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-13 19:50:25 +03:00
48ef8ba070
Split the kernel interface configure checks in to seperate m4 macro files. This is intended to facilitate moving the spl source code in to the zfs repository. Reviewed-by: Tony Hutter <hutter2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #682
20 lines
462 B
Plaintext
20 lines
462 B
Plaintext
dnl #
|
|
dnl # 3.5 API change,
|
|
dnl # inode_operations.truncate_range removed
|
|
dnl #
|
|
AC_DEFUN([SPL_AC_INODE_TRUNCATE_RANGE], [
|
|
AC_MSG_CHECKING([whether truncate_range() inode operation is available])
|
|
SPL_LINUX_TRY_COMPILE([
|
|
#include <linux/fs.h>
|
|
],[
|
|
struct inode_operations ops;
|
|
ops.truncate_range = NULL;
|
|
],[
|
|
AC_MSG_RESULT(yes)
|
|
AC_DEFINE(HAVE_INODE_TRUNCATE_RANGE, 1,
|
|
[truncate_range() inode operation is available])
|
|
],[
|
|
AC_MSG_RESULT(no)
|
|
])
|
|
])
|