]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/kernel-mount-nodev.m4
Merge tag 'upstream/0.7.5'
[mirror_zfs-debian.git] / config / kernel-mount-nodev.m4
CommitLineData
2cf7f52b
BB
1dnl #
2dnl # 2.6.39 API change
3dnl # The .get_sb callback has been replaced by a .mount callback
4dnl # in the file_system_type structure. When using the new
5dnl # interface the caller must now use the mount_nodev() helper.
6dnl # This updated callback and helper no longer pass the vfsmount.
7dnl #
70574182
ED
8AC_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 ])
2cf7f52b 20])