]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-bio-failfast.m4
Remove inconsistent use of EOPNOTSUPP
[mirror_zfs.git] / config / kernel-bio-failfast.m4
CommitLineData
2959d94a
BB
1dnl #
2dnl # 2.6.28 API change
3dnl # Device, transport, and driver FAILFAST flags were added and
4dnl # the now legacy BIO_RW_FAILFAST flag was removed.
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_BIO_FAILFAST], [
7 AC_MSG_CHECKING([whether BIO_RW_FAILFAST_* are defined])
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/bio.h>
10 ],[
11 int flags;
12 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13 (1 << BIO_RW_FAILFAST_TRANSPORT) |
14 (1 << BIO_RW_FAILFAST_DRIVER));
15 ],[
16 AC_MSG_RESULT(yes)
17 AC_DEFINE(HAVE_BIO_RW_FAILFAST, 1,
18 [BIO_RW_FAILFAST_* are defined])
19 ],[
20 AC_MSG_RESULT(no)
21 ])
22])