Add -p switch to "zpool get"
[zfs.git] / config / kernel-lookup-bdev.m4
1 dnl #
2 dnl # 2.6.27 API change
3 dnl # lookup_bdev() was exported.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_LOOKUP_BDEV],
6         [AC_MSG_CHECKING([whether lookup_bdev() is available])
7         ZFS_LINUX_TRY_COMPILE_SYMBOL([
8                 #include <linux/fs.h>
9         ], [
10                 lookup_bdev(NULL);
11         ], [lookup_bdev], [fs/block_dev.c], [
12                 AC_MSG_RESULT(yes)
13                 AC_DEFINE(HAVE_LOOKUP_BDEV, 1, [lookup_bdev() is available])
14         ], [
15                 AC_MSG_RESULT(no)
16         ])
17 ])