]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-discard-granularity.m4
Improve error message for zfs create with @ or # in name
[mirror_zfs.git] / config / kernel-discard-granularity.m4
CommitLineData
ee5fd0bb
ED
1dnl #
2dnl # 2.6.33 API change
3dnl # Discard granularity and alignment restrictions may now be set.
4dnl #
5AC_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])