]> granicus.if.org Git - zfs/blob - config/kernel-fst-mount.m4
Add back iostat -y or -w descriptions
[zfs] / config / kernel-fst-mount.m4
1 dnl #
2 dnl # 2.6.38 API change
3 dnl # The .get_sb callback has been replaced by a .mount callback
4 dnl # in the file_system_type structure.
5 dnl #
6 AC_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 ])