mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Add configure check for user_path_dir()
I didn't notice at the time but user_path_dir() was not introduced at the same time as set_fs_pwd() change. I had lumped the two together but in fact user_path_dir() was introduced in 2.6.27 and set_fs_pwd() taking 2 args was introduced in 2.6.25. This means builds against 2.6.25-2.6.26 kernels were broken. To fix this I've added a check for user_path_dir() and no longer assume that if set_fs_pwd() takes 2 args then user_path_dir() is also available.
This commit is contained in:
@@ -68,6 +68,7 @@ AC_DEFUN([SPL_AC_CONFIG_KERNEL], [
|
||||
SPL_AC_ZONE_STAT_ITEM_INACTIVE
|
||||
SPL_AC_ZONE_STAT_ITEM_ACTIVE
|
||||
SPL_AC_GET_ZONE_COUNTS
|
||||
SPL_AC_USER_PATH_DIR
|
||||
SPL_AC_SET_FS_PWD
|
||||
SPL_AC_2ARGS_SET_FS_PWD
|
||||
SPL_AC_2ARGS_VFS_UNLINK
|
||||
@@ -1298,6 +1299,19 @@ AC_DEFUN([SPL_AC_GET_ZONE_COUNTS], [
|
||||
])
|
||||
])
|
||||
|
||||
dnl #
|
||||
dnl # 2.6.27 API change,
|
||||
dnl # The user_path_dir() replaces __user_walk()
|
||||
dnl #
|
||||
AC_DEFUN([SPL_AC_USER_PATH_DIR], [
|
||||
SPL_CHECK_SYMBOL_EXPORT(
|
||||
[user_path_at],
|
||||
[],
|
||||
[AC_DEFINE(HAVE_USER_PATH_DIR, 1,
|
||||
[user_path_dir() is available])],
|
||||
[])
|
||||
])
|
||||
|
||||
dnl #
|
||||
dnl # Symbol available in RHEL kernels not in stock kernels.
|
||||
dnl #
|
||||
|
||||
Reference in New Issue
Block a user