Add -p switch to "zpool get"
[zfs.git] / config / kernel-blk-queue-io-opt.m4
1 dnl #
2 dnl # 2.6.30 API change
3 dnl # The blk_queue_io_opt() function was added to indicate the optimal
4 dnl # I/O size for the device.
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_BLK_QUEUE_IO_OPT], [
7         AC_MSG_CHECKING([whether blk_queue_io_opt() is available])
8         tmp_flags="$EXTRA_KCFLAGS"
9         EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
10         ZFS_LINUX_TRY_COMPILE([
11                 #include <linux/blkdev.h>
12         ],[
13                 struct request_queue *q = NULL;
14                 unsigned int opt = 1;
15                 (void) blk_queue_io_opt(q, opt);
16         ],[
17                 AC_MSG_RESULT(yes)
18                 AC_DEFINE(HAVE_BLK_QUEUE_IO_OPT, 1,
19                           [blk_queue_io_opt() is available])
20         ],[
21                 AC_MSG_RESULT(no)
22         ])
23         EXTRA_KCFLAGS="$tmp_flags"
24 ])