]>
Commit | Line | Data |
---|---|---|
b39d3b9f BB |
1 | dnl # |
2 | dnl # 3.3 API change | |
3 | dnl # The VFS .create, .mkdir and .mknod callbacks were updated to take a | |
4 | dnl # umode_t type rather than an int. The expectation is that any backport | |
5 | dnl # would also change all three prototypes. However, if it turns out that | |
6 | dnl # some distribution doesn't backport the whole thing this could be | |
7 | dnl # broken apart in to three seperate checks. | |
8 | dnl # | |
9 | AC_DEFUN([ZFS_AC_KERNEL_CREATE_UMODE_T], [ | |
10 | AC_MSG_CHECKING([whether iops->create()/mkdir()/mknod() take umode_t]) | |
11 | ZFS_LINUX_TRY_COMPILE([ | |
12 | #include <linux/fs.h> | |
13 | ],[ | |
14 | int (*create) (struct inode *, struct dentry *, umode_t, | |
15 | struct nameidata *) = NULL; | |
16 | struct inode_operations iops __attribute__ ((unused)) = { | |
17 | .create = create, | |
18 | }; | |
19 | ],[ | |
20 | AC_MSG_RESULT(yes) | |
21 | AC_DEFINE(HAVE_CREATE_UMODE_T, 1, | |
22 | [iops->create()/mkdir()/mknod() take umode_t]) | |
23 | ],[ | |
24 | AC_MSG_RESULT(no) | |
25 | ]) | |
26 | ]) |