Add -p switch to "zpool get"
[zfs.git] / config / kernel-mount-nodev.m4
1 dnl #
2 dnl # 2.6.39 API change
3 dnl # The .get_sb callback has been replaced by a .mount callback
4 dnl # in the file_system_type structure.  When using the new
5 dnl # interface the caller must now use the mount_nodev() helper.
6 dnl # This updated callback and helper no longer pass the vfsmount.
7 dnl #
8 AC_DEFUN([ZFS_AC_KERNEL_MOUNT_NODEV],
9         [AC_MSG_CHECKING([whether mount_nodev() is available])
10         ZFS_LINUX_TRY_COMPILE_SYMBOL([
11                 #include <linux/fs.h>
12         ], [
13                 mount_nodev(NULL, 0, NULL, NULL);
14         ], [mount_nodev], [fs/super.c], [
15                 AC_MSG_RESULT(yes)
16                 AC_DEFINE(HAVE_MOUNT_NODEV, 1, [mount_nodev() is available])
17         ], [
18                 AC_MSG_RESULT(no)
19         ])
20 ])