]>
Commit | Line | Data |
---|---|---|
558ef6d0 YS |
1 | dnl # |
2 | dnl # 3.6 API change | |
3 | dnl # | |
4 | AC_DEFUN([ZFS_AC_KERNEL_CREATE_NAMEIDATA], [ | |
e10b0808 | 5 | AC_MSG_CHECKING([whether iops->create() passes nameidata]) |
558ef6d0 YS |
6 | ZFS_LINUX_TRY_COMPILE([ |
7 | #include <linux/fs.h> | |
c38367c7 | 8 | |
558ef6d0 | 9 | #ifdef HAVE_MKDIR_UMODE_T |
c38367c7 RY |
10 | int inode_create(struct inode *inode ,struct dentry *dentry, |
11 | umode_t umode, struct nameidata *nidata) { return 0; } | |
558ef6d0 | 12 | #else |
c38367c7 RY |
13 | int inode_create(struct inode *inode,struct dentry *dentry, |
14 | int umode, struct nameidata * nidata) { return 0; } | |
558ef6d0 | 15 | #endif |
c38367c7 RY |
16 | |
17 | static const struct inode_operations | |
18 | iops __attribute__ ((unused)) = { | |
558ef6d0 YS |
19 | .create = inode_create, |
20 | }; | |
c38367c7 | 21 | ],[ |
558ef6d0 YS |
22 | ],[ |
23 | AC_MSG_RESULT(yes) | |
24 | AC_DEFINE(HAVE_CREATE_NAMEIDATA, 1, | |
e10b0808 | 25 | [iops->create() passes nameidata]) |
558ef6d0 YS |
26 | ],[ |
27 | AC_MSG_RESULT(no) | |
28 | ]) | |
29 | ]) |