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