]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-commit-metadata.m4
removal of LegacyVersion broke ax_python_dev.m4
[mirror_zfs.git] / config / kernel-commit-metadata.m4
CommitLineData
393b44c7
CP
1dnl #
2dnl # 2.6.33 API change
3dnl # Added eops->commit_metadata() callback to allow the underlying
4dnl # filesystem to determine the most efficient way to commit the inode.
5dnl # Prior to this the nfs server would issue an explicit fsync().
6dnl #
608f8749
BB
7AC_DEFUN([ZFS_AC_KERNEL_SRC_COMMIT_METADATA], [
8 ZFS_LINUX_TEST_SRC([export_operations_commit_metadata], [
393b44c7
CP
9 #include <linux/exportfs.h>
10 int commit_metadata(struct inode *inode) { return 0; }
11 static struct export_operations eops __attribute__ ((unused))={
12 .commit_metadata = commit_metadata,
13 };
608f8749
BB
14 ],[])
15])
16
17AC_DEFUN([ZFS_AC_KERNEL_COMMIT_METADATA], [
18 AC_MSG_CHECKING([whether eops->commit_metadata() exists])
19 ZFS_LINUX_TEST_RESULT([export_operations_commit_metadata], [
393b44c7 20 AC_MSG_RESULT(yes)
393b44c7 21 ],[
066e8252 22 ZFS_LINUX_TEST_ERROR([eops->commit_metadata()])
393b44c7
CP
23 ])
24])