]>
Commit | Line | Data |
---|---|---|
d441e85d BB |
1 | dnl # |
2 | dnl # 4.1 API, exported blkdev_reread_part() symbol, backported to the | |
3 | dnl # 3.10.0 CentOS 7.x enterprise kernels. | |
4 | dnl # | |
5 | AC_DEFUN([ZFS_AC_KERNEL_BLKDEV_REREAD_PART], [ | |
6 | AC_MSG_CHECKING([whether blkdev_reread_part() is available]) | |
7 | ZFS_LINUX_TRY_COMPILE([ | |
8 | #include <linux/fs.h> | |
9 | ], [ | |
10 | struct block_device *bdev = NULL; | |
11 | int error; | |
12 | ||
13 | error = blkdev_reread_part(bdev); | |
14 | ], [ | |
15 | AC_MSG_RESULT(yes) | |
16 | AC_DEFINE(HAVE_BLKDEV_REREAD_PART, 1, | |
17 | [blkdev_reread_part() is available]) | |
18 | ], [ | |
19 | AC_MSG_RESULT(no) | |
20 | ]) | |
21 | ]) |