]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-fst-mount.m4
Add CODE_OF_CONDUCT.md
[mirror_zfs.git] / config / kernel-fst-mount.m4
CommitLineData
93b43af1
SF
1dnl #
2dnl # 2.6.38 API change
3dnl # The .get_sb callback has been replaced by a .mount callback
4dnl # in the file_system_type structure.
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_FST_MOUNT], [
7 AC_MSG_CHECKING([whether fst->mount() exists])
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/fs.h>
10
11 static struct dentry *
12 mount(struct file_system_type *fs_type, int flags,
13 const char *osname, void *data) {
14 struct dentry *d = NULL;
15 return (d);
16 }
17
18 static struct file_system_type fst __attribute__ ((unused)) = {
19 .mount = mount,
20 };
21 ],[
22 ],[
23 AC_MSG_RESULT(yes)
24 AC_DEFINE(HAVE_FST_MOUNT, 1, [fst->mount() exists])
25 ],[
26 AC_MSG_RESULT(no)
27 ])
28])