]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-aio-fsync.m4
FreeBSD: Add zfs_link_create() error handling
[mirror_zfs.git] / config / kernel-aio-fsync.m4
CommitLineData
7ca25051
D
1dnl #
2dnl # Linux 4.9-rc5+ ABI, removal of the .aio_fsync field
3dnl #
608f8749
BB
4AC_DEFUN([ZFS_AC_KERNEL_SRC_AIO_FSYNC], [
5 ZFS_LINUX_TEST_SRC([aio_fsync], [
7ca25051
D
6 #include <linux/fs.h>
7
8 static const struct file_operations
9 fops __attribute__ ((unused)) = {
10 .aio_fsync = NULL,
11 };
608f8749
BB
12 ],[])
13])
14
15AC_DEFUN([ZFS_AC_KERNEL_AIO_FSYNC], [
16 AC_MSG_CHECKING([whether fops->aio_fsync() exists])
17 ZFS_LINUX_TEST_RESULT([aio_fsync], [
7ca25051
D
18 AC_MSG_RESULT(yes)
19 AC_DEFINE(HAVE_FILE_AIO_FSYNC, 1, [fops->aio_fsync() exists])
20 ],[
21 AC_MSG_RESULT(no)
22 ])
23])