Add -p switch to "zpool get"
[zfs.git] / config / kernel-discard-granularity.m4
1 dnl #
2 dnl # 2.6.33 API change
3 dnl # Discard granularity and alignment restrictions may now be set.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_DISCARD_GRANULARITY], [
6         AC_MSG_CHECKING([whether ql->discard_granularity is available])
7         ZFS_LINUX_TRY_COMPILE([
8                 #include <linux/blkdev.h>
9         ],[
10                 struct queue_limits ql __attribute__ ((unused));
11
12                 ql.discard_granularity = 0;
13         ],[
14                 AC_MSG_RESULT(yes)
15                 AC_DEFINE(HAVE_DISCARD_GRANULARITY, 1,
16                           [ql->discard_granularity is available])
17         ],[
18                 AC_MSG_RESULT(no)
19         ])
20 ])