]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-bio-bvec-iter.m4
Improve error message for zfs create with @ or # in name
[mirror_zfs.git] / config / kernel-bio-bvec-iter.m4
CommitLineData
d4541210
CC
1dnl #
2dnl # 3.14 API change,
3dnl # Immutable biovecs. A number of fields of struct bio are moved to
4dnl # struct bvec_iter.
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_BIO_BVEC_ITER], [
7 AC_MSG_CHECKING([whether bio has bi_iter])
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/bio.h>
10 ],[
11 struct bio bio;
12 bio.bi_iter.bi_sector = 0;
13 ],[
14 AC_MSG_RESULT(yes)
15 AC_DEFINE(HAVE_BIO_BVEC_ITER, 1, [bio has bi_iter])
16 ],[
17 AC_MSG_RESULT(no)
18 ])
19])
20