ztest: update ztest_dmu_snapshot_create_destroy()
[zfs.git] / config / kernel-kuidgid.m4
blobb7e441408cb96dfa63532a44df08ef43da040c7a
1 dnl #
2 dnl # 3.8 API change,
3 dnl # User namespaces, use kuid_t in place of uid_t where available.
4 dnl #
5 AC_DEFUN([ZFS_AC_KERNEL_SRC_KUIDGID_T], [
6         ZFS_LINUX_TEST_SRC([kuidgid_t], [
7                 #include <linux/uidgid.h>
8         ], [
9                 kuid_t userid __attribute__ ((unused)) = KUIDT_INIT(0);
10                 kgid_t groupid __attribute__ ((unused)) = KGIDT_INIT(0);
11         ])
14 AC_DEFUN([ZFS_AC_KERNEL_KUIDGID_T], [
15         AC_MSG_CHECKING([whether kuid_t/kgid_t is available])
16         ZFS_LINUX_TEST_RESULT([kuidgid_t], [
17                 AC_MSG_RESULT(yes)
18         ],[
19                 ZFS_LINUX_TEST_ERROR([kuid_t/kgid_t])
20         ])