summaryrefslogtreecommitdiffstats
path: root/config/kernel-check-disk-size-change.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/kernel-check-disk-size-change.m4')
-rw-r--r--config/kernel-check-disk-size-change.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/config/kernel-check-disk-size-change.m4 b/config/kernel-check-disk-size-change.m4
new file mode 100644
index 000000000..1a730c0c5
--- /dev/null
+++ b/config/kernel-check-disk-size-change.m4
@@ -0,0 +1,12 @@
+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], [
+ ZFS_CHECK_SYMBOL_EXPORT(
+ [check_disk_size_change],
+ [fs/block_dev.c],
+ [AC_DEFINE(HAVE_CHECK_DISK_SIZE_CHANGE, 1,
+ [check_disk_size_change() is available])],
+ [])
+])