Add -p switch to "zpool get"
[zfs.git] / config / kernel-truncate-setsize.m4
1 dnl #
2 dnl # 2.6.35 API change
3 dnl # Added truncate_setsize() helper function.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_TRUNCATE_SETSIZE],
6         [AC_MSG_CHECKING([whether truncate_setsize() is available])
7         ZFS_LINUX_TRY_COMPILE_SYMBOL([
8                 #include <linux/mm.h>
9         ], [
10                 truncate_setsize(NULL, 0);
11         ], [truncate_setsize], [mm/truncate.c], [
12                 AC_MSG_RESULT(yes)
13                 AC_DEFINE(HAVE_TRUNCATE_SETSIZE, 1,
14                           [truncate_setsize() is available])
15         ], [
16                 AC_MSG_RESULT(no)
17         ])
18 ])