summaryrefslogtreecommitdiffstats
path: root/config/kernel-check-disk-size-change.m4
blob: ea5c75f39f2078740add085f39622d5e99fff87d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
dnl #
dnl # 2.6.28 API change
dnl # Added check_disk_size_change() helper function.
dnl #
AC_DEFUN([ZFS_AC_KERNEL_CHECK_DISK_SIZE_CHANGE],
	[AC_MSG_CHECKING([whether check_disk_size_change() is available])
	ZFS_LINUX_TRY_COMPILE_SYMBOL([
		#include <linux/fs.h>
	], [
		check_disk_size_change(NULL, NULL);
	], [check_disk_size_change], [fs/block_dev.c], [
		AC_MSG_RESULT(yes)
		AC_DEFINE(HAVE_CHECK_DISK_SIZE_CHANGE, 1,
		          [check_disk_size_change() is available])
	], [
		AC_MSG_RESULT(no)
	])
])