ZTS: Fix send_partial_dataset.ksh
[zfs.git] / config / kernel-follow-down-one.m4
blob38c460d3506e605c6eef20f0fc2d778bd0407267
1 dnl #
2 dnl # 2.6.38 API change
3 dnl # follow_down() renamed follow_down_one().  The original follow_down()
4 dnl # symbol still exists but will traverse down all the layers.
5 dnl #
6 AC_DEFUN([ZFS_AC_KERNEL_SRC_FOLLOW_DOWN_ONE], [
7         ZFS_LINUX_TEST_SRC([follow_down_one], [
8                 #include <linux/namei.h>
9         ],[
10                 struct path *p = NULL;
11                 follow_down_one(p);
12         ])
15 AC_DEFUN([ZFS_AC_KERNEL_FOLLOW_DOWN_ONE], [
16         AC_MSG_CHECKING([whether follow_down_one() is available])
17         ZFS_LINUX_TEST_RESULT([follow_down_one], [
18                 AC_MSG_RESULT(yes)
19         ],[
20                 ZFS_LINUX_TEST_ERROR([follow_down_one()])
21         ])