4 # Wrapper for AC_CONFIG_SUBDIR
6 AC_DEFUN([LC_CONFIG_SRCDIR], [
7 AC_CONFIG_SRCDIR([lustre/obdclass/obdo.c])
14 # lustre specific paths
16 AC_DEFUN([LC_PATH_DEFAULTS], [
17 # ptlrpc kernel build requires this
25 demodir='$(docdir)/demo'
28 pkgexampledir='${pkgdatadir}/examples'
29 AC_SUBST(pkgexampledir)
35 # is the target os supported?
37 AC_DEFUN([LC_TARGET_SUPPORTED], [
46 ]) # LC_TARGET_SUPPORTED
49 # LC_GLIBC_SUPPORT_FHANDLES
51 AC_DEFUN([LC_GLIBC_SUPPORT_FHANDLES], [
52 AC_CHECK_FUNCS([name_to_handle_at],
53 [AC_DEFINE(HAVE_FHANDLE_GLIBC_SUPPORT, 1,
54 [file handle and related syscalls are supported])],
55 [AC_MSG_WARN([file handle and related syscalls are not supported])])
56 ]) # LC_GLIBC_SUPPORT_FHANDLES
59 # LC_GLIBC_SUPPORT_COPY_FILE_RANGE
61 AC_DEFUN([LC_GLIBC_SUPPORT_COPY_FILE_RANGE], [
62 AC_CHECK_FUNCS([copy_file_range],
63 [AC_DEFINE(HAVE_COPY_FILE_RANGE, 1,
64 [copy_file_range() is supported])],
65 [AC_MSG_WARN([copy_file_range() is not supported])])
66 ]) # LC_GLIBC_SUPPORT_COPY_FILE_RANGE
71 AC_DEFUN([LC_FID2PATH_ANON_UNION], [
73 CFLAGS="$CFLAGS -Werror"
74 AC_MSG_CHECKING([if 'struct getinfo_fid2path' has anonymous union])
75 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
76 #include <linux/lustre/lustre_idl.h>
79 struct getinfo_fid2path gf;
80 struct lu_fid root_fid;
82 *gf.gf_root_fid = root_fid;
86 AC_DEFINE(HAVE_FID2PATH_ANON_UNIONS, 1, [union is unnamed])
92 ]) # LC_FID2PATH_ANON_UNION
97 AC_DEFUN([LC_IOC_REMOVE_ENTRY], [
99 CFLAGS="$CFLAGS -Werror"
100 AC_MSG_CHECKING([if ioctl IOC_REMOVE_ENTRY' is supported])
101 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
102 #include <sys/ioctl.h>
103 #include <linux/lustre/lustre_ioctl.h>
106 return ioctl(0, LL_IOC_REMOVE_ENTRY, NULL);
109 AC_DEFINE(HAVE_IOC_REMOVE_ENTRY, 1,
110 [IOC_REMOVE_ENTRY ioctl exists])
115 CFLAGS="$saved_flags"
116 ]) # LC_IOC_REMOVE_ENTRY
121 # Ensure the stack size is at least 8k in Lustre server (all kernels)
123 AC_DEFUN([LC_STACK_SIZE], [
124 LB_CHECK_COMPILE([if stack size is at least 8k],
126 #include <linux/thread_info.h>
128 #if THREAD_SIZE < 8192
129 #error "stack size < 8192"
131 ], [], [AC_MSG_ERROR([
133 Lustre requires that Linux is configured with at least a 8KB stack.
140 # Allow the user to set the MDS thread upper limit
142 AC_DEFUN([LC_MDS_MAX_THREADS], [
143 AC_MSG_CHECKING([for maximum number of MDS threads])
144 AC_ARG_WITH([mds_max_threads],
145 AS_HELP_STRING([--with-mds-max-threads=count],
146 [maximum threads available on the MDS: (default=512)]),
147 [AC_DEFINE_UNQUOTED(MDS_MAX_THREADS, $with_mds_max_threads,
148 [maximum number of MDS threads])])
149 AC_MSG_RESULT([$with_mds_max_threads])
150 ]) # LC_MDS_MAX_THREADS
155 # the pinger is temporary, until we have the recovery node in place
157 AC_DEFUN([LC_CONFIG_PINGER], [
158 AC_MSG_CHECKING([whether to enable Lustre pinger support])
159 AC_ARG_ENABLE([pinger],
160 AS_HELP_STRING([--disable-pinger],
161 [disable recovery pinger support]),
162 [], [enable_pinger="yes"])
163 AC_MSG_RESULT([$enable_pinger])
164 AS_IF([test "x$enable_pinger" != xno],
165 [AC_DEFINE(CONFIG_LUSTRE_FS_PINGER, 1,[Use the Pinger])])
166 ]) # LC_CONFIG_PINGER
171 # do checksum of bulk data between client and OST
173 AC_DEFUN([LC_CONFIG_CHECKSUM], [
174 AC_MSG_CHECKING([whether to enable data checksum support])
175 AC_ARG_ENABLE([checksum],
176 AS_HELP_STRING([--disable-checksum],
177 [disable data checksum support]),
178 [], [enable_checksum="yes"])
179 AC_MSG_RESULT([$enable_checksum])
180 AS_IF([test "x$enable_checksum" != xno],
181 [AC_DEFINE(ENABLE_CHECKSUM, 1, [do data checksums])])
182 ]) # LC_CONFIG_CHECKSUM
187 # enable distributed flock by default
189 AC_DEFUN([LC_CONFIG_FLOCK], [
190 AC_MSG_CHECKING([whether to enable flock by default])
191 AC_ARG_ENABLE([flock],
192 AS_HELP_STRING([--disable-flock],
193 [disable flock by default]),
194 [], [enable_flock="yes"])
195 AC_MSG_RESULT([$enable_flock])
196 AS_IF([test "x$enable_flock" != xno],
197 [AC_DEFINE(ENABLE_FLOCK, 1, [enable flock by default])])
201 # LC_CONFIG_HEALTH_CHECK_WRITE
203 # Turn off the actual write to the disk
205 AC_DEFUN([LC_CONFIG_HEALTH_CHECK_WRITE], [
206 AC_MSG_CHECKING([whether to enable a write with the health check])
207 AC_ARG_ENABLE([health_write],
208 AS_HELP_STRING([--enable-health_write],
209 [enable disk writes when doing health check]),
210 [], [enable_health_write="no"])
211 AC_MSG_RESULT([$enable_health_write])
212 AS_IF([test "x$enable_health_write" != xno],
213 [AC_DEFINE(USE_HEALTH_CHECK_WRITE, 1, [Write when Checking Health])])
214 ]) # LC_CONFIG_HEALTH_CHECK_WRITE
217 # LC_CONFIG_LRU_RESIZE
219 AC_DEFUN([LC_CONFIG_LRU_RESIZE], [
220 AC_MSG_CHECKING([whether to enable lru self-adjusting])
221 AC_ARG_ENABLE([lru_resize],
222 AS_HELP_STRING([--enable-lru-resize],
223 [enable lru resize support]),
224 [], [enable_lru_resize="yes"])
225 AC_MSG_RESULT([$enable_lru_resize])
226 AS_IF([test "x$enable_lru_resize" != xno],
227 [AC_DEFINE(HAVE_LRU_RESIZE_SUPPORT, 1, [Enable lru resize support])])
228 ]) # LC_CONFIG_LRU_RESIZE
233 # Quota support. The kernel must support CONFIG_QUOTA.
235 AC_DEFUN([LC_QUOTA_CONFIG], [
236 LB_CHECK_CONFIG_IM([QUOTA], [],
239 Lustre quota requires that CONFIG_QUOTA is enabled in your kernel.
246 # fhandle kernel support for open_by_handle_at() and name_to_handle_at()
247 # system calls. The kernel must support CONFIG_FHANDLE.
249 AC_DEFUN([LC_CONFIG_FHANDLE], [
250 LB_CHECK_CONFIG_IM([FHANDLE], [],
253 Lustre fid handling requires that CONFIG_FHANDLE is enabled in your kernel.
255 ]) # LC_CONFIG_FHANDLE
258 # LC_POSIX_ACL_CONFIG
262 AC_DEFUN([LC_POSIX_ACL_CONFIG], [
263 LB_CHECK_CONFIG_IM([FS_POSIX_ACL],
264 [AC_DEFINE(CONFIG_LUSTRE_FS_POSIX_ACL, 1, [Enable POSIX acl])
266 ]) # LC_POSIX_ACL_CONFIG
268 LB_CHECK_CONFIG_IM([CRYPTO_MD5], [],
269 [AC_MSG_WARN([kernel MD5 support is recommended by using GSS.])])
272 # LC_CONFIG_GSS_KEYRING
274 # default 'auto', tests for dependencies, if found, enables;
275 # only called if gss is enabled
277 AC_DEFUN([LC_CONFIG_GSS_KEYRING], [
278 AC_MSG_CHECKING([whether to enable gss keyring backend])
279 AC_ARG_ENABLE([gss_keyring],
280 [AS_HELP_STRING([--disable-gss-keyring],
281 [disable gss keyring backend])],
282 [], [AS_IF([test "x$enable_gss" != xno], [
283 enable_gss_keyring="yes"], [
284 enable_gss_keyring="auto"])])
285 AC_MSG_RESULT([$enable_gss_keyring])
286 AS_IF([test "x$enable_gss_keyring" != xno], [
287 LB_CHECK_CONFIG_IM([KEYS], [], [
288 gss_keyring_conf_test="fail"
289 AC_MSG_WARN([GSS keyring backend requires that CONFIG_KEYS be enabled in your kernel.])])
291 AC_CHECK_LIB([keyutils], [keyctl_search], [], [
292 gss_keyring_conf_test="fail"
293 AC_MSG_WARN([GSS keyring backend requires libkeyutils])])
295 AS_IF([test "x$gss_keyring_conf_test" != xfail], [
296 AC_DEFINE([HAVE_GSS_KEYRING], [1],
297 [Define this if you enable gss keyring backend])
298 enable_gss_keyring="yes"
300 AS_IF([test "x$enable_gss_keyring" = xyes], [
301 AC_MSG_ERROR([Cannot enable gss_keyring. See above for details.])
308 ]) # LC_CONFIG_GSS_KEYRING
311 # LC_KEY_TYPE_INSTANTIATE_2ARGS
313 # rhel7 key_type->instantiate takes 2 args (struct key, struct key_preparsed_payload)
315 AC_DEFUN([LC_KEY_TYPE_INSTANTIATE_2ARGS], [
316 LB_CHECK_COMPILE([if 'key_type->instantiate' has two args],
317 key_type_instantiate_2args, [
318 #include <linux/key-type.h>
320 ((struct key_type *)0)->instantiate(0, NULL);
322 AC_DEFINE(HAVE_KEY_TYPE_INSTANTIATE_2ARGS, 1,
323 [key_type->instantiate has two args])
325 ]) # LC_KEY_TYPE_INSTANTIATE_2ARGS
330 AC_DEFUN([LC_CONFIG_SUNRPC], [
331 LB_CHECK_CONFIG_IM([SUNRPC], [], [
332 AS_IF([test "x$sunrpc_required" = xyes], [
335 kernel SUNRPC support is required by using GSS.
338 ]) # LC_CONFIG_SUNRPC
341 # LC_CONFIG_GSS (default 'auto' (tests for dependencies, if found, enables))
343 # Build gss and related tools of Lustre. Currently both kernel and user space
344 # parts are depend on linux platform.
346 AC_DEFUN([LC_CONFIG_GSS], [
347 AC_MSG_CHECKING([whether to enable gss support])
349 [AS_HELP_STRING([--enable-gss], [enable gss support])],
350 [], [enable_gss="auto"])
351 AC_MSG_RESULT([$enable_gss])
353 AC_ARG_VAR([TEST_JOBS],
354 [simultaneous jobs during configure (defaults to $(nproc))])
355 if test "x$ac_cv_env_TEST_JOBS_set" != "xset"; then
356 TEST_JOBS=${TEST_JOBS:-$(nproc)}
360 AC_ARG_VAR([TEST_DIR],
361 [location of temporary parallel configure tests (defaults to $PWD/lb2)])
362 TEST_DIR=${TEST_DIR:-${ac_pwd}/_lpb}
365 AS_IF([test "x$enable_gss" != xno], [
366 LC_CONFIG_GSS_KEYRING
367 LC_KEY_TYPE_INSTANTIATE_2ARGS
368 sunrpc_required=$enable_gss
372 LB_CHECK_CONFIG_IM([CRYPTO_MD5], [],
373 [AC_MSG_WARN([kernel MD5 support is recommended by using GSS.])])
374 LB_CHECK_CONFIG_IM([CRYPTO_SHA1], [],
375 [AC_MSG_WARN([kernel SHA1 support is recommended by using GSS.])])
376 LB_CHECK_CONFIG_IM([CRYPTO_SHA256], [],
377 [AC_MSG_WARN([kernel SHA256 support is recommended by using GSS.])])
378 LB_CHECK_CONFIG_IM([CRYPTO_SHA512], [],
379 [AC_MSG_WARN([kernel SHA512 support is recommended by using GSS.])])
381 require_krb5=$enable_gss
385 AS_IF([test -n "$KRBDIR"], [
386 gss_conf_test="success"
388 gss_conf_test="failure"
391 AS_IF([test "x$gss_conf_test" = xsuccess && test "x$enable_gss" != xno], [
392 AC_DEFINE([HAVE_GSS], [1], [Define this is if you enable gss])
395 enable_gss_keyring="no"
399 AS_IF([test "x$enable_ssk" != xno], [
400 enable_ssk=$enable_gss
403 enable_gss_keyring="no"
409 # OpenSSL 1.0+ return int for HMAC functions but older SLES11 versions do not
410 AC_DEFUN([LC_OPENSSL_HMAC], [
411 has_hmac_functions="no"
412 saved_flags="$CFLAGS"
413 CFLAGS="$CFLAGS -Werror"
414 AC_MSG_CHECKING([whether OpenSSL has HMAC_Init_ex])
415 AS_IF([test "x$enable_ssk" != xno], [
416 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
417 #include <openssl/hmac.h>
418 #include <openssl/evp.h>
422 rc = HMAC_Init_ex(NULL, "test", 4, EVP_md_null(), NULL);
425 has_hmac_functions="yes"
428 AC_MSG_RESULT([$has_hmac_functions])
429 CFLAGS="$saved_flags"
432 # LC_OPENSSL_EVP_PKEY
434 # OpenSSL 3.0 introduces EVP_PKEY_get_params
435 AC_DEFUN([LC_OPENSSL_EVP_PKEY], [
437 saved_flags="$CFLAGS"
438 CFLAGS="$CFLAGS -Werror"
439 AC_MSG_CHECKING([whether OpenSSL has EVP_PKEY_get_params])
440 AS_IF([test "x$enable_ssk" != xno], [
441 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
442 #include <openssl/evp.h>
447 int rc = EVP_PKEY_get_params(NULL, params);
450 AC_DEFINE(HAVE_OPENSSL_EVP_PKEY, 1, [OpenSSL EVP_PKEY_get_params])
454 CFLAGS="$saved_flags"
455 AC_MSG_RESULT([$has_evp_pkey])
456 ]) # LC_OPENSSL_EVP_PKEY
461 # Check whether to enable Lustre client crypto
463 AC_DEFUN([LC_OPENSSL_SSK], [
464 AC_MSG_CHECKING([whether OpenSSL has functions needed for SSK])
465 AS_IF([test "x$enable_ssk" != xno], [
471 AS_IF([test "x$has_hmac_functions" = xyes -o "x$has_evp_pkey" = xyes], [
472 AC_DEFINE(HAVE_OPENSSL_SSK, 1, [OpenSSL HMAC functions needed for SSK])
476 AC_MSG_RESULT([$enable_ssk])
479 # LC_OPENSSL_GETSEPOL
481 # OpenSSL is needed for l_getsepol
482 AC_DEFUN([LC_OPENSSL_GETSEPOL], [
483 saved_flags="$CFLAGS"
484 CFLAGS="$CFLAGS -Werror"
485 AC_MSG_CHECKING([whether openssl-devel is present])
486 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
487 #include <openssl/evp.h>
490 EVP_MD_CTX *mdctx = EVP_MD_CTX_create();
493 AC_DEFINE(HAVE_OPENSSL_GETSEPOL, 1, [openssl-devel is present])
494 enable_getsepol="yes"
500 No openssl-devel headers found, unable to build l_getsepol and SELinux status checking
503 AC_MSG_RESULT([$enable_getsepol])
504 CFLAGS="$saved_flags"
505 ]) # LC_OPENSSL_GETSEPOL
508 AC_DEFUN([LC_HAVE_LIBAIO], [
509 AC_CHECK_HEADER([libaio.h],
511 AC_MSG_WARN([libaio is not installed in the system]))
515 # LC_INVALIDATE_RANGE
517 # 3.11 invalidatepage requires the length of the range to invalidate
519 AC_DEFUN([LC_INVALIDATE_RANGE], [
520 LB_CHECK_COMPILE([if 'address_space_operations.invalidatepage' requires 3 arguments],
521 address_space_ops_invalidatepage_3args, [
522 #include <linux/fs.h>
524 struct address_space_operations a_ops;
525 a_ops.invalidatepage(NULL, 0, 0);
527 AC_DEFINE(HAVE_INVALIDATE_RANGE, 1,
528 [address_space_operations.invalidatepage needs 3 arguments])
530 ]) # LC_INVALIDATE_RANGE
533 # LC_HAVE_DIR_CONTEXT
535 # 3.11 readdir now takes the new struct dir_context
537 AC_DEFUN([LC_HAVE_DIR_CONTEXT], [
538 LB_CHECK_COMPILE([if 'dir_context' exist],
540 #include <linux/fs.h>
542 #ifdef FMODE_KABI_ITERATE
543 #error "back to use readdir in kabi_extand mode"
545 struct dir_context ctx;
550 AC_DEFINE(HAVE_DIR_CONTEXT, 1,
553 ]) # LC_HAVE_DIR_CONTEXT
558 # 3.11 dentry_operations.d_compare() taken 5 arguments.
560 AC_DEFUN([LC_D_COMPARE_5ARGS], [
561 LB_CHECK_COMPILE([if 'd_compare' taken 5 arguments],
563 #include <linux/dcache.h>
565 ((struct dentry_operations*)0)->d_compare(NULL,NULL,0,NULL,NULL);
567 AC_DEFINE(HAVE_D_COMPARE_5ARGS, 1,
568 [d_compare need 5 arguments])
570 ]) # LC_D_COMPARE_5ARGS
575 # 3.11 need to access d_count to get dentry reference count
577 AC_DEFUN([LC_HAVE_DCOUNT], [
578 LB_CHECK_COMPILE([if 'd_count' exists],
580 #include <linux/dcache.h>
582 struct dentry de = { };
585 count = d_count(&de);
587 AC_DEFINE(HAVE_D_COUNT, 1,
593 # LC_PID_NS_FOR_CHILDREN
595 # 3.11 replaces pid_ns by pid_ns_for_children in struct nsproxy
597 AC_DEFUN([LC_PID_NS_FOR_CHILDREN], [
598 LB_CHECK_COMPILE([if 'struct nsproxy' has 'pid_ns_for_children'],
599 pid_ns_for_children, [
600 #include <linux/nsproxy.h>
603 ns.pid_ns_for_children = NULL;
605 AC_DEFINE(HAVE_PID_NS_FOR_CHILDREN, 1,
606 ['struct nsproxy' has 'pid_ns_for_children'])
608 ]) # LC_PID_NS_FOR_CHILDREN
611 # LC_OLDSIZE_TRUNCATE_PAGECACHE
613 # 3.12 truncate_pagecache without oldsize parameter
615 AC_DEFUN([LC_OLDSIZE_TRUNCATE_PAGECACHE], [
616 LB_CHECK_COMPILE([if 'truncate_pagecache' with 'old_size' parameter],
617 truncate_pagecache_old_size, [
618 #include <linux/mm.h>
620 truncate_pagecache(NULL, 0, 0);
622 AC_DEFINE(HAVE_OLDSIZE_TRUNCATE_PAGECACHE, 1,
625 ]) # LC_OLDSIZE_TRUNCATE_PAGECACHE
630 # For some reason SLES11SP4 is missing the PTR_ERR_OR_ZERO macro
631 # It was added to linux kernel 3.12
633 AC_DEFUN([LC_PTR_ERR_OR_ZERO_MISSING], [
634 LB_CHECK_COMPILE([if 'PTR_ERR_OR_ZERO' is missing],
636 #include <linux/err.h>
638 if (PTR_ERR_OR_ZERO(NULL)) return 0;
640 AC_DEFINE(HAVE_PTR_ERR_OR_ZERO, 1,
641 ['PTR_ERR_OR_ZERO' exist])
643 ]) # LC_PTR_ERR_OR_ZERO_MISSING
646 # LC_HAVE_DENTRY_D_U_D_ALIAS
648 # 3.11 kernel moved d_alias to the union d_u in struct dentry
650 # Some distros move d_alias to d_u but it is still a struct list
652 AC_DEFUN([LC_HAVE_DENTRY_D_U_D_ALIAS], [
653 AS_IF([test "x$lb_cv_compile_i_dentry_d_alias_list" = xyes], [
654 LB_CHECK_COMPILE([if list 'dentry.d_u.d_alias' exist],
656 #include <linux/list.h>
657 #include <linux/dcache.h>
660 INIT_LIST_HEAD(&de.d_u.d_alias);
662 AC_DEFINE(HAVE_DENTRY_D_U_D_ALIAS, 1,
663 [list dentry.d_u.d_alias exist])
666 LB_CHECK_COMPILE([if hlist 'dentry.d_u.d_alias' exist],
668 #include <linux/list.h>
669 #include <linux/dcache.h>
672 INIT_HLIST_NODE(&de.d_u.d_alias);
674 AC_DEFINE(HAVE_DENTRY_D_U_D_ALIAS, 1,
675 [hlist dentry.d_u.d_alias exist])
678 ]) # LC_HAVE_DENTRY_D_U_D_ALIAS
681 # LC_HAVE_DENTRY_D_CHILD
683 # 3.11 kernel d_child has been moved out of the union d_u
686 AC_DEFUN([LC_HAVE_DENTRY_D_CHILD], [
687 LB_CHECK_COMPILE([if 'dentry.d_child' exist],
689 #include <linux/list.h>
690 #include <linux/dcache.h>
693 INIT_LIST_HEAD(&de.d_child);
695 AC_DEFINE(HAVE_DENTRY_D_CHILD, 1,
696 [dentry.d_child exist])
698 ]) # LC_HAVE_DENTRY_D_CHILD
703 # 3.12 ki_left removed from struct kiocb
705 AC_DEFUN([LC_KIOCB_KI_LEFT], [
706 LB_CHECK_COMPILE([if 'struct kiocb' with 'ki_left' member],
708 #include <linux/aio.h>
710 ((struct kiocb*)0)->ki_left = 0;
712 AC_DEFINE(HAVE_KIOCB_KI_LEFT, 1,
715 ]) # LC_KIOCB_KI_LEFT
718 # LC_REGISTER_SHRINKER_RET
720 # v3.11-8748-g1d3d4437eae1 register_shrinker returns a status
722 AC_DEFUN([LC_REGISTER_SHRINKER_RET], [
723 LB_CHECK_COMPILE([if register_shrinker() returns status],
724 register_shrinker_ret, [
725 #include <linux/mm.h>
727 if (register_shrinker(NULL))
728 unregister_shrinker(NULL);
730 AC_DEFINE(HAVE_REGISTER_SHRINKER_RET, 1,
731 [register_shrinker() returns status])
733 ]) # LC_REGISTER_SHRINKER_RET
736 # LC_VFS_RENAME_5ARGS
738 # 3.13 has vfs_rename with 5 args
740 AC_DEFUN([LC_VFS_RENAME_5ARGS], [
741 LB_CHECK_COMPILE([if Linux kernel has 'vfs_rename' with 5 args],
743 #include <linux/fs.h>
745 vfs_rename(NULL, NULL, NULL, NULL, NULL);
747 AC_DEFINE(HAVE_VFS_RENAME_5ARGS, 1,
748 [kernel has vfs_rename with 5 args])
750 ]) # LC_VFS_RENAME_5ARGS
753 # LC_VFS_UNLINK_3ARGS
755 # 3.13 has vfs_unlink with 3 args
757 AC_DEFUN([LC_VFS_UNLINK_3ARGS], [
758 LB_CHECK_COMPILE([if Linux kernel has 'vfs_unlink' with 3 args],
760 #include <linux/fs.h>
762 vfs_unlink(NULL, NULL, NULL);
764 AC_DEFINE(HAVE_VFS_UNLINK_3ARGS, 1,
765 [kernel has vfs_unlink with 3 args])
767 ]) # LC_VFS_UNLINK_3ARGS
769 # LC_HAVE_D_IS_POSITIVE
771 # Kernel version 3.13 b18825a7c8e37a7cf6abb97a12a6ad71af160de7
772 # d_is_positive is added
774 AC_DEFUN([LC_HAVE_D_IS_POSITIVE], [
775 LB_CHECK_COMPILE([if 'd_is_positive' exist],
777 #include <linux/dcache.h>
781 AC_DEFINE(HAVE_D_IS_POSITIVE, 1,
782 ['d_is_positive' is available])
784 ]) # LC_HAVE_D_IS_POSITIVE
789 # 3.14 move some of its data in struct bio into the new
792 AC_DEFUN([LC_HAVE_BVEC_ITER], [
793 LB_CHECK_COMPILE([if Linux kernel has struct bvec_iter],
795 #include <linux/bio.h>
797 struct bvec_iter iter;
799 iter.bi_bvec_done = 0;
801 AC_DEFINE(HAVE_BVEC_ITER, 1,
802 [kernel has struct bvec_iter])
804 ]) # LC_HAVE_BVEC_ITER
809 # 3.14 adds set_acl method to inode_operations
810 # see kernel commit 893d46e443346370cd4ea81d9d35f72952c62a37
812 AC_DEFUN([LC_IOP_SET_ACL], [
813 LB_CHECK_COMPILE([if 'inode_operations' has '.set_acl' member function],
815 #include <linux/fs.h>
817 struct inode_operations iop;
820 AC_DEFINE(HAVE_IOP_SET_ACL, 1,
821 [inode_operations has .set_acl member function])
826 # LC_HAVE_TRUNCATE_IPAGE_FINAL
828 # 3.14 bring truncate_inode_pages_final for evict_inode
830 AC_DEFUN([LC_HAVE_TRUNCATE_IPAGES_FINAL], [
831 LB_CHECK_COMPILE([if Linux kernel has truncate_inode_pages_final],
832 truncate_ipages_final, [
833 #include <linux/mm.h>
835 truncate_inode_pages_final(NULL);
837 AC_DEFINE(HAVE_TRUNCATE_INODE_PAGES_FINAL, 1,
838 [kernel has truncate_inode_pages_final])
840 ]) # LC_HAVE_TRUNCATE_IPAGES_FINAL
843 # LC_IOPS_RENAME_WITH_FLAGS
845 # 3.14 has inode_operations->rename with 5 args
846 # commit 520c8b16505236fc82daa352e6c5e73cd9870cff
848 AC_DEFUN([LC_IOPS_RENAME_WITH_FLAGS], [
849 LB_CHECK_COMPILE([if 'inode_operations->rename' taken flags as argument],
850 iops_rename_with_flags, [
851 #include <linux/fs.h>
853 struct inode *i1 = NULL, *i2 = NULL;
854 struct dentry *d1 = NULL, *d2 = NULL;
856 rc = ((struct inode_operations *)0)->rename(i1, d1, i2, d2, 0);
858 AC_DEFINE(HAVE_IOPS_RENAME_WITH_FLAGS, 1,
859 [inode_operations->rename need flags as argument])
861 ]) # LC_IOPS_RENAME_WITH_FLAGS
864 # LC_VFS_RENAME_6ARGS
866 # 3.15 has vfs_rename with 6 args
868 AC_DEFUN([LC_VFS_RENAME_6ARGS], [
869 LB_CHECK_COMPILE([if Linux kernel has 'vfs_rename' with 6 args],
871 #include <linux/fs.h>
873 vfs_rename(NULL, NULL, NULL, NULL, NULL, NULL);
875 AC_DEFINE(HAVE_VFS_RENAME_6ARGS, 1,
876 [kernel has vfs_rename with 6 args])
878 ]) # LC_VFS_RENAME_6ARGS
881 # LC_DIRECTIO_USE_ITER
883 # 3.16 kernel changes direct IO to use iov_iter
885 AC_DEFUN([LC_DIRECTIO_USE_ITER], [
886 LB_CHECK_COMPILE([if direct IO uses iov_iter],
888 #include <linux/fs.h>
890 struct address_space_operations ops = { };
891 struct iov_iter *iter = NULL;
894 ops.direct_IO(0, NULL, iter, offset);
896 AC_DEFINE(HAVE_DIRECTIO_ITER, 1,
897 [direct IO uses iov_iter])
899 ]) # LC_DIRECTIO_USE_ITER
902 # LC_HAVE_IOV_ITER_INIT_DIRECTION
905 # 3.16 linux commit 71d8e532b1549a478e6a6a8a44f309d050294d00
906 # changed iov_iter_init api to start accepting a tag
907 # that defines if its a read or write operation
909 AC_DEFUN([LC_HAVE_IOV_ITER_INIT_DIRECTION], [
910 tmp_flags="$EXTRA_KCFLAGS"
911 EXTRA_KCFLAGS="-Werror"
912 LB_CHECK_COMPILE([if 'iov_iter_init' takes a tag],
914 #include <linux/uio.h>
915 #include <linux/fs.h>
917 const struct iovec *iov = NULL;
919 iov_iter_init(NULL, READ, iov, 1, 0);
921 AC_DEFINE(HAVE_IOV_ITER_INIT_DIRECTION, 1,
922 [iov_iter_init handles directional tag])
924 EXTRA_KCFLAGS="$tmp_flags"
925 ]) # LC_HAVE_IOV_ITER_INIT_DIRECTION
928 # LC_HAVE_IOV_ITER_TRUNCATE
931 # 3.16 introduces a new API iov_iter_truncate()
933 AC_DEFUN([LC_HAVE_IOV_ITER_TRUNCATE], [
934 tmp_flags="$EXTRA_KCFLAGS"
935 EXTRA_KCFLAGS="-Werror"
936 LB_CHECK_COMPILE([if 'iov_iter_truncate' exists ],
938 #include <linux/uio.h>
939 #include <linux/fs.h>
941 struct iov_iter *i = NULL;
943 iov_iter_truncate(i, 0);
945 AC_DEFINE(HAVE_IOV_ITER_TRUNCATE, 1, [iov_iter_truncate exists])
947 EXTRA_KCFLAGS="$tmp_flags"
948 ]) # LC_HAVE_IOV_ITER_TRUNCATE
951 # LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER
953 # 3.16 introduces [read|write]_iter to struct file_operations
955 AC_DEFUN([LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER], [
956 LB_CHECK_COMPILE([if 'file_operations.[read|write]_iter' exist],
957 file_function_iter, [
958 #include <linux/fs.h>
960 ((struct file_operations *)NULL)->read_iter(NULL, NULL);
961 ((struct file_operations *)NULL)->write_iter(NULL, NULL);
963 AC_DEFINE(HAVE_FILE_OPERATIONS_READ_WRITE_ITER, 1,
964 [file_operations.[read|write]_iter functions exist])
966 ]) # LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER
969 # LC_HAVE_INTERVAL_BLK_INTEGRITY
971 # 3.17 replace sector_size with interval in struct blk_integrity
973 AC_DEFUN([LC_HAVE_INTERVAL_BLK_INTEGRITY], [
974 LB_CHECK_COMPILE([if 'blk_integrity.interval' exist],
975 interval_blk_integrity, [
976 #include <linux/blkdev.h>
978 ((struct blk_integrity *)0)->interval = 0;
980 AC_DEFINE(HAVE_INTERVAL_BLK_INTEGRITY, 1,
981 [blk_integrity.interval exist])
983 ]) # LC_HAVE_INTERVAL_BLK_INTEGRITY
988 # 3.17 replaces key_type::match with match_preparse
989 # and has new struct key_match_data
991 AC_DEFUN([LC_KEY_MATCH_DATA], [
992 LB_CHECK_COMPILE([if struct key_match field exist],
994 #include <linux/key-type.h>
996 struct key_match_data data;
998 data.raw_data = NULL;
1000 AC_DEFINE(HAVE_KEY_MATCH_DATA, 1,
1001 [struct key_match_data exist])
1003 ]) # LC_KEY_MATCH_DATA
1006 # LC_NFS_FILLDIR_USE_CTX
1008 # 3.18 kernel moved from void cookie to struct dir_context
1010 AC_DEFUN([LC_NFS_FILLDIR_USE_CTX], [
1011 tmp_flags="$EXTRA_KCFLAGS"
1012 EXTRA_KCFLAGS="-Werror"
1013 LB_CHECK_COMPILE([if filldir_t uses struct dir_context],
1015 #include <linux/fs.h>
1017 int filldir(struct dir_context *ctx, const char* name,
1018 int i, loff_t off, u64 tmp, unsigned temp)
1023 struct dir_context ctx = {
1027 ctx.actor(NULL, "test", 0, (loff_t) 0, 0, 0);
1029 AC_DEFINE(HAVE_FILLDIR_USE_CTX, 1,
1030 [filldir_t needs struct dir_context as argument])
1032 EXTRA_KCFLAGS="$tmp_flags"
1033 ]) # LC_NFS_FILLDIR_USE_CTX
1036 # LC_PERCPU_COUNTER_INIT
1038 # 3.18 For kernels 3.18 and after percpu_counter_init starts
1039 # to pass a GFP_* memory allocation flag for internal
1040 # memory allocation purposes.
1042 AC_DEFUN([LC_PERCPU_COUNTER_INIT], [
1043 LB_CHECK_COMPILE([if percpu_counter_init uses GFP_* flag as argument],
1044 percpu_counter_init, [
1045 #include <linux/percpu_counter.h>
1047 percpu_counter_init(NULL, 0, GFP_KERNEL);
1049 AC_DEFINE(HAVE_PERCPU_COUNTER_INIT_GFP_FLAG, 1,
1050 [percpu_counter_init uses GFP_* flag])
1052 ]) # LC_PERCPU_COUNTER_INIT
1055 # LC_KIOCB_HAS_NBYTES
1057 # 3.19 kernel removed ki_nbytes from struct kiocb
1059 AC_DEFUN([LC_KIOCB_HAS_NBYTES], [
1060 LB_CHECK_COMPILE([if struct kiocb has ki_nbytes field],
1062 #include <linux/fs.h>
1064 struct kiocb iocb = { };
1068 AC_DEFINE(HAVE_KI_NBYTES, 1, [ki_nbytes field exist])
1070 ]) # LC_KIOCB_HAS_NBYTES
1073 # LC_HAVE_DQUOT_QC_DQBLK
1075 # 3.19 has quotactl_ops->[sg]et_dqblk that take struct kqid and qc_dqblk
1076 # Added in commit 14bf61ffe
1078 AC_DEFUN([LC_HAVE_DQUOT_QC_DQBLK], [
1079 tmp_flags="$EXTRA_KCFLAGS"
1080 EXTRA_KCFLAGS="-Werror"
1081 LB_CHECK_COMPILE([if 'quotactl_ops.set_dqblk' takes struct qc_dqblk],
1083 #include <linux/fs.h>
1084 #include <linux/quota.h>
1086 ((struct quotactl_ops *)0)->set_dqblk(NULL, *((struct kqid*)0), (struct qc_dqblk*)0);
1088 AC_DEFINE(HAVE_DQUOT_QC_DQBLK, 1,
1089 [quotactl_ops.set_dqblk takes struct qc_dqblk])
1090 AC_DEFINE(HAVE_DQUOT_KQID, 1,
1091 [quotactl_ops.set_dqblk takes struct kqid])
1093 EXTRA_KCFLAGS="$tmp_flags"
1094 ]) # LC_HAVE_DQUOT_QC_DQBLK
1097 # LC_HAVE_AIO_COMPLETE
1099 # 3.19 kernel makes aio_complete() static
1101 AC_DEFUN([LC_HAVE_AIO_COMPLETE], [
1102 LB_CHECK_COMPILE([if kernel has exported aio_complete() ],
1104 #include <linux/aio.h>
1106 aio_complete(NULL, 0, 0);
1108 AC_DEFINE(HAVE_AIO_COMPLETE, 1, [aio_complete defined])
1110 ]) # LC_HAVE_AIO_COMPLETE
1113 # LC_HAVE_IS_ROOT_INODE
1115 # 3.19 kernel adds is_root_inode()
1116 # Commit a7400222e3eb ("new helper: is_root_inode()")
1118 AC_DEFUN([LC_HAVE_IS_ROOT_INODE], [
1119 LB_CHECK_COMPILE([if kernel has is_root_inode() ],
1121 #include <linux/fs.h>
1123 is_root_inode(NULL);
1125 AC_DEFINE(HAVE_IS_ROOT_INODE, 1, [is_root_inode defined])
1127 ]) # LC_HAVE_IS_ROOT_INODE
1130 # LC_BACKING_DEV_INFO_REMOVAL
1132 # 3.20 kernel removed backing_dev_info from address_space
1134 AC_DEFUN([LC_BACKING_DEV_INFO_REMOVAL], [
1135 LB_CHECK_COMPILE([if struct address_space has backing_dev_info],
1137 #include <linux/fs.h>
1139 struct address_space mapping;
1141 mapping.backing_dev_info = NULL;
1143 AC_DEFINE(HAVE_BACKING_DEV_INFO, 1, [backing_dev_info exist])
1145 ]) # LC_BACKING_DEV_INFO_REMOVAL
1148 # LC_HAVE_BDI_CAP_MAP_COPY
1150 # 3.20 removed mmap handling for backing devices since
1151 # it breaks on non-MMU systems. See kernel commit
1152 # b4caecd48005fbed3949dde6c1cb233142fd69e9
1154 AC_DEFUN([LC_HAVE_BDI_CAP_MAP_COPY], [
1155 LB_CHECK_COMPILE([if have 'BDI_CAP_MAP_COPY'],
1157 #include <linux/backing-dev.h>
1159 struct backing_dev_info info;
1161 info.capabilities = BDI_CAP_MAP_COPY;
1163 AC_DEFINE(HAVE_BDI_CAP_MAP_COPY, 1,
1164 [BDI_CAP_MAP_COPY exist])
1166 ]) # LC_HAVE_BDI_CAP_MAP_COPY
1169 # LC_HAVE_PROJECT_QUOTA
1171 # Kernel version v4.0-rc1-197-g847aac644e92
1173 AC_DEFUN([LC_HAVE_PROJECT_QUOTA], [
1174 LB_CHECK_COMPILE([if get_projid exists],
1177 #include <linux/quota.h>
1179 struct dquot_operations ops = { };
1181 ops.get_projid(NULL, NULL);
1183 AC_DEFINE(HAVE_PROJECT_QUOTA, 1,
1184 [get_projid function exists])
1186 ]) # LC_HAVE_PROJECT_QUOTA
1191 # 4.1 kernel has iov_iter_rw
1193 AC_DEFUN([LC_IOV_ITER_RW], [
1194 LB_CHECK_COMPILE([if iov_iter_rw exist],
1196 #include <linux/fs.h>
1197 #include <linux/uio.h>
1199 struct iov_iter *iter = NULL;
1203 AC_DEFINE(HAVE_IOV_ITER_RW, 1,
1204 [iov_iter_rw exist])
1209 # LC_HAVE_SYNC_READ_WRITE
1211 # 4.1 new_sync_[read|write] no longer exported
1213 AC_DEFUN([LC_HAVE_SYNC_READ_WRITE], [
1214 LB_CHECK_EXPORT([new_sync_read], [fs/read_write.c],
1215 [AC_DEFINE(HAVE_SYNC_READ_WRITE, 1,
1216 [new_sync_[read|write] is exported by the kernel])])
1217 ]) # LC_HAVE_SYNC_READ_WRITE
1222 # 4.1 redefined bi_cnt as __bi_cnt in commit dac56212e8127dbc0
1224 AC_DEFUN([LC_HAVE___BI_CNT], [
1225 LB_CHECK_COMPILE([if Linux kernel has __bi_cnt in struct bio],
1227 #include <asm/atomic.h>
1228 #include <linux/bio.h>
1229 #include <linux/blk_types.h>
1231 struct bio bio = { };
1233 cnt = atomic_read(&bio.__bi_cnt);
1235 AC_DEFINE(HAVE___BI_CNT, 1,
1236 [struct bio has __bi_cnt])
1238 ]) # LC_HAVE___BI_CNT
1241 # LC_SYMLINK_OPS_USE_NAMEIDATA
1243 # For the 4.2+ kernels the file system internal symlink api no
1244 # longer uses struct nameidata as a argument
1246 AC_DEFUN([LC_SYMLINK_OPS_USE_NAMEIDATA], [
1247 LB_CHECK_COMPILE([if symlink inode operations have struct nameidata argument],
1248 symlink_use_nameidata, [
1249 #include <linux/namei.h>
1250 #include <linux/fs.h>
1252 struct nameidata *nd = NULL;
1254 ((struct inode_operations *)0)->follow_link(NULL, nd);
1255 ((struct inode_operations *)0)->put_link(NULL, nd, NULL);
1257 AC_DEFINE(HAVE_SYMLINK_OPS_USE_NAMEIDATA, 1,
1258 [symlink inode operations need struct nameidata argument])
1260 ]) # LC_SYMLINK_OPS_USE_NAMEIDATA
1263 # LC_BIO_ENDIO_USES_ONE_ARG
1265 # 4.2 kernel bio_endio now only takes one argument
1267 AC_DEFUN([LC_BIO_ENDIO_USES_ONE_ARG], [
1268 LB_CHECK_COMPILE([if 'bio_endio' with one argument exist],
1270 #include <linux/bio.h>
1274 AC_DEFINE(HAVE_BIO_ENDIO_USES_ONE_ARG, 1,
1275 [bio_endio takes only one argument])
1277 ]) # LC_BIO_ENDIO_USES_ONE_ARG
1280 # LC_ACCOUNT_PAGE_DIRTIED_3ARGS
1282 # 4.2 [to 4.5] kernel page dirtied takes 3 arguments
1284 AC_DEFUN([LC_ACCOUNT_PAGE_DIRTIED_3ARGS], [
1285 LB_CHECK_COMPILE([if 'account_page_dirtied' with 3 args exists],
1286 account_page_dirtied, [
1287 #include <linux/mm.h>
1289 account_page_dirtied(NULL, NULL, NULL);
1291 AC_DEFINE(HAVE_ACCOUNT_PAGE_DIRTIED_3ARGS, 1,
1292 [account_page_dirtied takes three arguments])
1294 ]) # LC_ACCOUNT_PAGE_DIRTIED_3ARGS
1297 # LC_HAVE_CRYPTO_ALLOC_SKCIPHER
1299 # Kernel version 4.12 commit 7a7ffe65c8c5
1300 # introduced crypto_alloc_skcipher().
1302 AC_DEFUN([LC_HAVE_CRYPTO_ALLOC_SKCIPHER], [
1303 LB_CHECK_COMPILE([if crypto_alloc_skcipher is defined],
1304 crypto_alloc_skcipher, [
1305 #include <crypto/skcipher.h>
1307 crypto_alloc_skcipher(NULL, 0, 0);
1309 AC_DEFINE(HAVE_CRYPTO_ALLOC_SKCIPHER, 1,
1310 [crypto_alloc_skcipher is defined])
1312 ]) # LC_HAVE_CRYPTO_ALLOC_SKCIPHER
1315 # LC_HAVE_INTERVAL_EXP_BLK_INTEGRITY
1317 # 4.3 replace interval with interval_exp in 'struct blk_integrity'
1318 # 'struct blk_integrity_profile' is also added in this version,
1319 # thus use this to determine whether 'struct blk_integrity' has profile
1321 AC_DEFUN([LC_HAVE_INTERVAL_EXP_BLK_INTEGRITY], [
1322 LB_CHECK_COMPILE([if 'blk_integrity.interval_exp' exist],
1323 blk_integrity_interval_exp, [
1324 #include <linux/blkdev.h>
1326 ((struct blk_integrity *)0)->interval_exp = 0;
1328 AC_DEFINE(HAVE_INTERVAL_EXP_BLK_INTEGRITY, 1,
1329 [blk_integrity.interval_exp exist])
1331 ]) # LC_HAVE_INTERVAL_EXP_BLK_INTEGRITY
1334 # LC_HAVE_CACHE_HEAD_HLIST
1336 # 4.3 kernel swiched to hlist for cache_head
1338 AC_DEFUN([LC_HAVE_CACHE_HEAD_HLIST], [
1339 LB_CHECK_COMPILE([if 'struct cache_head' has 'cache_list' field],
1340 cache_head_has_hlist, [
1341 #include <linux/sunrpc/cache.h>
1343 do {} while(sizeof(((struct cache_head *)0)->cache_list));
1345 AC_DEFINE(HAVE_CACHE_HEAD_HLIST, 1,
1346 [cache_head has hlist cache_list])
1348 ]) # LC_HAVE_CACHE_HEAD_HLIST
1351 # LC_HAVE_XATTR_HANDLER_SIMPLIFIED
1353 # Kernel version 4.3 commit e409de992e3ea3674393465f07cc71c948edd87a
1354 # simplified xattr_handler handling by passing in the handler pointer
1356 AC_DEFUN([LC_HAVE_XATTR_HANDLER_SIMPLIFIED], [
1357 tmp_flags="$EXTRA_KCFLAGS"
1358 EXTRA_KCFLAGS="-Werror"
1359 LB_CHECK_COMPILE([if 'struct xattr_handler' functions pass in handler pointer],
1360 xattr_handler_simplified, [
1361 #include <linux/xattr.h>
1363 struct xattr_handler handler;
1365 ((struct xattr_handler *)0)->get(&handler, NULL, NULL, NULL, 0);
1366 ((struct xattr_handler *)0)->set(&handler, NULL, NULL, NULL, 0, 0);
1368 AC_DEFINE(HAVE_XATTR_HANDLER_SIMPLIFIED, 1, [handler pointer is parameter])
1370 EXTRA_KCFLAGS="$tmp_flags"
1371 ]) # LC_HAVE_XATTR_HANDLER_SIMPLIFIED
1374 # LC_HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD
1376 # 4.3 replace interval with interval_exp in 'struct blk_integrity'.
1378 AC_DEFUN([LC_HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD], [
1379 LB_CHECK_COMPILE([if 'bio_integrity_payload.bip_iter' exist],
1380 bio_integrity_payload_bip_iter, [
1381 #include <linux/bio.h>
1383 ((struct bio_integrity_payload *)0)->bip_iter.bi_size = 0;
1385 AC_DEFINE(HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD, 1,
1386 [bio_integrity_payload.bip_iter exist])
1388 ]) # LC_HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD
1391 # LC_BIO_INTEGRITY_PREP_FN
1393 # Lustre kernel patch extents bio_integrity_prep to accept optional
1394 # generate/verify_fn as extra args.
1396 AC_DEFUN([LC_BIO_INTEGRITY_PREP_FN], [
1397 LB_CHECK_COMPILE([if 'bio_integrity_prep_fn' exists],
1398 bio_integrity_prep_fn, [
1399 #include <linux/bio.h>
1401 bio_integrity_prep_fn(NULL, NULL, NULL);
1403 AC_DEFINE(HAVE_BIO_INTEGRITY_PREP_FN, 1,
1404 [kernel has bio_integrity_prep_fn])
1405 AC_SUBST(PATCHED_INTEGRITY_INTF)
1407 AC_SUBST(PATCHED_INTEGRITY_INTF, [#])
1409 ]) # LC_BIO_INTEGRITY_PREP_FN
1411 # LC_BIO_INTEGRITY_PREP_FN_RETURNS_BOOL
1413 # 13 kernel integrity API has changed and in 4.13+
1414 # (as well as in rhel 8.4) bio_integrity_prep() returns boolean true
1417 AC_DEFUN([LC_BIO_INTEGRITY_PREP_FN_RETURNS_BOOL], [
1418 LB_CHECK_COMPILE([if 'bio_integrity_prep_fn' returns bool],
1419 bio_integrity_prep, [
1420 #include <linux/bio.h>
1421 #include <linux/typecheck.h>
1423 #pragma GCC diagnostic warning "-Werror"
1424 typedef bool (*bio_integrity_prep_type)(struct bio *bio) ;
1426 typecheck_fn(bio_integrity_prep_type, bio_integrity_prep);
1428 AC_DEFINE(HAVE_BIO_INTEGRITY_PREP_FN_RETURNS_BOOL, 1,
1429 [bio_integrity_prep_fn returns bool])
1431 ]) # LC_BIO_INTEGRITY_PREP_FN_RETURNS_BOOL
1436 # 4.4/4.8 redefined bi_rw as bi_opf (SLES12/kernel commit 4382e33ad37486)
1438 AC_DEFUN([LC_HAVE_BI_OPF], [
1439 LB_CHECK_COMPILE([if Linux kernel has bi_opf in struct bio],
1441 #include <linux/bio.h>
1447 AC_DEFINE(HAVE_BI_OPF, 1,
1448 [struct bio has bi_opf])
1453 # LC_HAVE_SUBMIT_BIO_2ARGS
1455 # 4.4 removed an argument from submit_bio
1457 AC_DEFUN([LC_HAVE_SUBMIT_BIO_2ARGS], [
1458 LB_CHECK_COMPILE([if submit_bio takes two arguments],
1459 have_submit_bio_2args, [
1460 #include <linux/bio.h>
1463 submit_bio(READ, &bio);
1465 AC_DEFINE(HAVE_SUBMIT_BIO_2ARGS, 1,
1466 [submit_bio takes two arguments])
1468 ]) # LC_HAVE_SUBMIT_BIO_2_ARGS
1471 # LC_HAVE_CLEAN_BDEV_ALIASES
1473 # 4.4/4.9 unmap_underlying_metadata was replaced by clean_bdev_aliases
1474 # (SLES12/kernel commit 29f3ad7d8380364c)
1476 AC_DEFUN([LC_HAVE_CLEAN_BDEV_ALIASES], [
1477 LB_CHECK_COMPILE([if kernel has clean_bdev_aliases],
1478 have_clean_bdev_aliases, [
1479 #include <linux/buffer_head.h>
1481 clean_bdev_aliases(NULL,1,1);
1483 AC_DEFINE(HAVE_CLEAN_BDEV_ALIASES, 1,
1484 [kernel has clean_bdev_aliases])
1486 ]) # LC_HAVE_CLEAN_BDEV_ALIASES
1489 # LC_HAVE_LOCKS_LOCK_FILE_WAIT
1491 # 4.4 kernel have moved locks API users to
1492 # locks_lock_inode_wait()
1494 AC_DEFUN([LC_HAVE_LOCKS_LOCK_FILE_WAIT], [
1495 LB_CHECK_COMPILE([if 'locks_lock_file_wait' exists],
1496 locks_lock_file_wait, [
1497 #include <linux/fs.h>
1499 locks_lock_file_wait(NULL, NULL);
1501 AC_DEFINE(HAVE_LOCKS_LOCK_FILE_WAIT, 1,
1502 [kernel has locks_lock_file_wait])
1504 ]) # LC_HAVE_LOCKS_LOCK_FILE_WAIT
1507 # LC_HAVE_KEY_PAYLOAD_DATA_ARRAY
1509 # 4.4 kernel merged type-specific data with the payload data for keys
1511 AC_DEFUN([LC_HAVE_KEY_PAYLOAD_DATA_ARRAY], [
1512 LB_CHECK_COMPILE([if 'struct key' has 'payload.data' as an array],
1513 key_payload_data_array, [
1514 #include <linux/key.h>
1516 struct key key = { };
1518 key.payload.data[0] = NULL;
1520 AC_DEFINE(HAVE_KEY_PAYLOAD_DATA_ARRAY, 1, [payload.data is an array])
1522 ]) #LC_HAVE_KEY_PAYLOAD_DATA_ARRAY
1525 # LC_HAVE_XATTR_HANDLER_NAME
1527 # Kernel version 4.4 commit 98e9cb5711c68223f0e4d5201b9a6add255ec550
1528 # add a name member to struct xattr_handler
1530 AC_DEFUN([LC_HAVE_XATTR_HANDLER_NAME], [
1531 tmp_flags="$EXTRA_KCFLAGS"
1532 EXTRA_KCFLAGS="-Werror"
1533 LB_CHECK_COMPILE([if 'struct xattr_handler' has a name member],
1534 xattr_handler_name, [
1535 #include <linux/xattr.h>
1537 ((struct xattr_handler *)NULL)->name = NULL;
1539 AC_DEFINE(HAVE_XATTR_HANDLER_NAME, 1, [xattr_handler has a name member])
1541 EXTRA_KCFLAGS="$tmp_flags"
1542 ]) # LC_HAVE_XATTR_HANDLER_NAME
1545 # LC_HAVE_FILE_DENTRY
1547 # 4.5 adds wrapper file_dentry
1549 AC_DEFUN([LC_HAVE_FILE_DENTRY], [
1550 LB_CHECK_COMPILE([if Linux kernel has 'file_dentry'],
1552 #include <linux/fs.h>
1556 AC_DEFINE(HAVE_FILE_DENTRY, 1,
1557 [kernel has file_dentry])
1559 ]) # LC_HAVE_FILE_DENTRY
1562 # LC_HAVE_INODE_LOCK
1564 # 4.5 introduced inode_lock
1566 AC_DEFUN([LC_HAVE_INODE_LOCK], [
1567 LB_CHECK_COMPILE([if 'inode_lock' is defined],
1569 #include <linux/fs.h>
1573 AC_DEFINE(HAVE_INODE_LOCK, 1,
1574 [inode_lock is defined])
1576 ]) # LC_HAVE_INODE_LOCK
1579 # LC_HAVE_IOP_GET_LINK
1581 # 4.5 vfs replaced iop->follow_link with
1584 AC_DEFUN([LC_HAVE_IOP_GET_LINK], [
1585 LB_CHECK_COMPILE([if 'iop' has 'get_link'],
1586 inode_ops_get_link, [
1587 #include <linux/fs.h>
1589 struct inode_operations iop;
1590 iop.get_link = NULL;
1592 AC_DEFINE(HAVE_IOP_GET_LINK, 1,
1593 [have iop get_link])
1595 ]) # LC_HAVE_IOP_GET_LINK
1598 # LC_HAVE_IN_COMPAT_SYSCALL
1600 # 4.6 renamed is_compat_task to in_compat_syscall
1602 AC_DEFUN([LC_HAVE_IN_COMPAT_SYSCALL], [
1603 LB_CHECK_COMPILE([if 'in_compat_syscall' is defined],
1604 in_compat_syscall, [
1605 #include <linux/compat.h>
1607 in_compat_syscall();
1609 AC_DEFINE(HAVE_IN_COMPAT_SYSCALL, 1,
1610 [have in_compat_syscall])
1612 ]) # LC_HAVE_IN_COMPAT_SYSCALL
1615 # LC_HAVE_XATTR_HANDLER_INODE_PARAM
1617 # Kernel version 4.6 commit b296821a7c42fa58baa17513b2b7b30ae66f3336
1618 # and commit 5930122683dff58f0846b0f0405b4bd598a3ba6a added inode parameter
1619 # to xattr_handler functions
1621 AC_DEFUN([LC_HAVE_XATTR_HANDLER_INODE_PARAM], [
1622 tmp_flags="$EXTRA_KCFLAGS"
1623 EXTRA_KCFLAGS="-Werror"
1624 LB_CHECK_COMPILE([if 'struct xattr_handler' functions have inode parameter],
1625 xattr_handler_inode_param, [
1626 #include <linux/xattr.h>
1628 const struct xattr_handler handler;
1630 ((struct xattr_handler *)0)->get(&handler, NULL, NULL, NULL, NULL, 0);
1631 ((struct xattr_handler *)0)->set(&handler, NULL, NULL, NULL, NULL, 0, 0);
1633 AC_DEFINE(HAVE_XATTR_HANDLER_INODE_PARAM, 1, [needs inode parameter])
1635 EXTRA_KCFLAGS="$tmp_flags"
1636 ]) # LC_HAVE_XATTR_HANDLER_INODE_PARAM
1641 # Kernel version 4.6 commit 85c7f81041d57cfe9dc97f4680d5586b54534a39
1642 # introduced parallel lookups in the VFS layer. The inline function
1643 # d_in_lookup was added to notify when the same item was being queried
1646 AC_DEFUN([LC_D_IN_LOOKUP], [
1647 tmp_flags="$EXTRA_KCFLAGS"
1648 EXTRA_KCFLAGS="-Werror"
1649 LB_CHECK_COMPILE([if 'd_in_lookup' is defined],
1651 #include <linux/dcache.h>
1655 AC_DEFINE(HAVE_D_IN_LOOKUP, 1, [d_in_lookup is defined])
1657 EXTRA_KCFLAGS="$tmp_flags"
1661 # LC_LOCK_PAGE_MEMCG
1663 # Kernel version 4.6 adds lock_page_memcg
1665 AC_DEFUN([LC_LOCK_PAGE_MEMCG], [
1666 LB_CHECK_COMPILE([if 'lock_page_memcg' is defined],
1668 #include <linux/memcontrol.h>
1670 lock_page_memcg(NULL);
1672 AC_DEFINE(HAVE_LOCK_PAGE_MEMCG, 1,
1673 [lock_page_memcg is defined])
1675 ]) # LC_LOCK_PAGE_MEMCG
1678 # LC_HAVE_DOWN_WRITE_KILLABLE
1680 # Kernel version v4.6-rc3-28-g916633a40370
1682 AC_DEFUN([LC_HAVE_DOWN_WRITE_KILLABLE], [
1683 LB_CHECK_COMPILE([if down_write_killable exists],
1684 down_write_killable, [
1685 struct rw_semaphore sem;
1686 #include <linux/rwsem.h>
1690 rc = down_write_killable(&sem);
1692 AC_DEFINE(HAVE_DOWN_WRITE_KILLABLE, 1,
1693 [down_write_killable function exists])
1695 ]) # LC_HAVE_DOWN_WRITE_KILLABLE
1700 # Kernel version 4.7-rc5 commit 285b102d3b745f3c2c110c9c327741d87e64aacc
1701 # add new d_init to initialize dentry at allocation time
1703 AC_DEFUN([LC_D_INIT], [
1704 LB_CHECK_COMPILE([if dentry operations supports 'd_init'],
1706 #include <linux/dcache.h>
1708 struct dentry_operations ops = { };
1711 rc = ops.d_init(NULL);
1713 AC_DEFINE(HAVE_D_INIT, 1, ['d_init' exists])
1720 # Kernel version 4.7 commit c8b8e32d700fe943a935e435ae251364d016c497
1721 # direct-io: eliminate the offset argument to ->direct_IO
1723 AC_DEFUN([LC_DIRECTIO_2ARGS], [
1724 LB_CHECK_COMPILE([if '->direct_IO()' taken 2 arguments],
1726 #include <linux/fs.h>
1728 struct address_space_operations ops = { };
1729 struct iov_iter *iter = NULL;
1730 struct kiocb *iocb = NULL;
1733 rc = ops.direct_IO(iocb, iter);
1735 AC_DEFINE(HAVE_DIRECTIO_2ARGS, 1,
1736 [direct_IO need 2 arguments])
1738 ]) # LC_DIRECTIO_2ARGS
1741 # LC_GENERIC_WRITE_SYNC_2ARGS
1743 # Kernel version 4.7 commit dde0c2e79848298cc25621ad080d47f94dbd7cce
1744 # fs: add IOCB_SYNC and IOCB_DSYNC
1746 AC_DEFUN([LC_GENERIC_WRITE_SYNC_2ARGS], [
1747 LB_CHECK_COMPILE([if 'generic_write_sync()' taken 2 arguments],
1748 generic_write_sync_2args, [
1749 #include <linux/fs.h>
1751 struct kiocb *iocb = NULL;
1754 rc = generic_write_sync(iocb, 0);
1756 AC_DEFINE(HAVE_GENERIC_WRITE_SYNC_2ARGS, 1,
1757 [generic_write_sync need 2 arguments])
1759 ]) # LC_GENERIC_WRITE_SYNC_2ARGS
1762 # LC_FOP_ITERATE_SHARED
1764 # Kernel v4.6-rc3-29-g6192269 adds iterate_shared method to file_operations
1766 AC_DEFUN([LC_FOP_ITERATE_SHARED], [
1767 LB_CHECK_COMPILE([if 'file_operations' has 'iterate_shared'],
1768 fop_iterate_shared, [
1769 #include <linux/fs.h>
1771 struct file_operations fop;
1772 fop.iterate_shared = NULL;
1774 AC_DEFINE(HAVE_FOP_ITERATE_SHARED, 1,
1775 [file_operations has iterate_shared])
1777 ]) # LC_FOP_ITERATE_SHARED
1780 # LC_EXPORT_DEFAULT_FILE_SPLICE_READ
1782 # 4.8-rc8 commit 82c156f853840645604acd7c2cebcb75ed1b6652 switched
1783 # generic_file_splice_read() to using ->read_iter. We can test this
1784 # change since default_file_splice_read() is no longer exported.
1786 AC_DEFUN([LC_EXPORT_DEFAULT_FILE_SPLICE_READ], [
1787 LB_CHECK_EXPORT([default_file_splice_read], [fs/splice.c],
1788 [AC_DEFINE(HAVE_DEFAULT_FILE_SPLICE_READ_EXPORT, 1,
1789 [default_file_splice_read is exported])])
1790 ]) # LC_EXPORT_DEFAULT_FILE_SPLCE_READ
1793 # LC_HAVE_POSIX_ACL_VALID_USER_NS
1795 # 4.8 posix_acl_valid takes struct user_namespace
1797 AC_DEFUN([LC_HAVE_POSIX_ACL_VALID_USER_NS], [
1798 LB_CHECK_COMPILE([if 'posix_acl_valid' takes 'struct user_namespace'],
1800 #include <linux/fs.h>
1801 #include <linux/posix_acl.h>
1803 posix_acl_valid((struct user_namespace*)NULL, (const struct posix_acl*)NULL);
1805 AC_DEFINE(HAVE_POSIX_ACL_VALID_USER_NS, 1,
1806 [posix_acl_valid takes struct user_namespace])
1808 ]) # LC_HAVE_POSIX_ACL_VALID_USER_NS
1811 # LC_D_COMPARE_4ARGS
1813 # Kernel version 4.8 commit 6fa67e707559303e086303aeecc9e8b91ef497d5
1814 # get rid of 'parent' argument of ->d_compare()
1816 AC_DEFUN([LC_D_COMPARE_4ARGS], [
1817 LB_CHECK_COMPILE([if 'd_compare' taken 4 arguments],
1819 #include <linux/dcache.h>
1821 ((struct dentry_operations*)0)->d_compare(NULL,0,NULL,NULL);
1823 AC_DEFINE(HAVE_D_COMPARE_4ARGS, 1,
1824 [d_compare need 4 arguments])
1826 ]) # LC_D_COMPARE_4ARGS
1829 # LC_FULL_NAME_HASH_3ARGS
1831 # Kernel version 4.8 commit 8387ff2577eb9ed245df9a39947f66976c6bcd02
1832 # vfs: make the string hashes salt the hash
1834 AC_DEFUN([LC_FULL_NAME_HASH_3ARGS], [
1835 LB_CHECK_COMPILE([if 'full_name_hash' taken 3 arguments],
1836 full_name_hash_3args, [
1837 #include <linux/stringhash.h>
1840 hash = full_name_hash(NULL,NULL,0);
1842 AC_DEFINE(HAVE_FULL_NAME_HASH_3ARGS, 1,
1843 [full_name_hash need 3 arguments])
1845 ]) # LC_FULL_NAME_HASH_3ARGS
1848 # LC_STRUCT_POSIX_ACL_XATTR
1850 # Kernel version 4.8 commit 2211d5ba5c6c4e972ba6dbc912b2897425ea6621
1851 # posix_acl: xattr representation cleanups
1853 AC_DEFUN([LC_STRUCT_POSIX_ACL_XATTR], [
1854 LB_CHECK_COMPILE([if 'struct posix_acl_xattr_{header,entry}' defined],
1855 struct_posix_acl_xattr, [
1856 #include <linux/fs.h>
1857 #include <linux/posix_acl_xattr.h>
1859 struct posix_acl_xattr_header *h = NULL;
1860 struct posix_acl_xattr_entry *e;
1861 e = (void *)(h + 1);
1863 AC_DEFINE(HAVE_STRUCT_POSIX_ACL_XATTR, 1,
1864 [struct posix_acl_xattr_{header,entry} defined])
1866 ]) # LC_STRUCT_POSIX_ACL_XATTR
1871 # Kernel version 4.8 commit fd50ecaddf8372a1d96e0daeaac0f93cf04e4d42
1872 # removed {get,set,remove}xattr inode operations
1874 AC_DEFUN([LC_IOP_XATTR], [
1875 LB_CHECK_COMPILE([if 'inode_operations' has {get,set,remove}xattr members],
1877 #include <linux/fs.h>
1879 struct inode_operations iop;
1880 iop.setxattr = NULL;
1881 iop.getxattr = NULL;
1882 iop.removexattr = NULL;
1884 AC_DEFINE(HAVE_IOP_XATTR, 1,
1885 [inode_operations has {get,set,remove}xattr members])
1892 # Kernel version 4.9 commit 81243eacfa400f5f7b89f4c2323d0de9982bb0fb
1893 # cred: simpler, 1D supplementary groups
1895 AC_DEFUN([LC_GROUP_INFO_GID], [
1896 LB_CHECK_COMPILE([if 'struct group_info' has member 'gid'],
1898 #include <linux/cred.h>
1901 p = ((struct group_info *)0)->gid;
1903 AC_DEFINE(HAVE_GROUP_INFO_GID, 1,
1904 [struct group_info has member gid])
1906 ]) # LC_GROUP_INFO_GID
1911 # Kernel version 4.9 commit 5d6c31910bc0713e37628dc0ce677dcb13c8ccf4
1912 # added __vfs_{get,set,remove}xattr helpers
1914 AC_DEFUN([LC_VFS_SETXATTR], [
1915 LB_CHECK_COMPILE([if '__vfs_setxattr' helper is available],
1917 #include <linux/xattr.h>
1919 __vfs_setxattr(NULL, NULL, NULL, NULL, 0, 0);
1921 AC_DEFINE(HAVE_VFS_SETXATTR, 1,
1922 ['__vfs_setxattr' is available])
1924 ]) # LC_VFS_SETXATTR
1927 # LC_POSIX_ACL_UPDATE_MODE
1929 # Kernel version 4.9 commit 073931017b49d9458aa351605b43a7e34598caef
1930 # posix_acl: Clear SGID bit when setting file permissions
1932 AC_DEFUN([LC_POSIX_ACL_UPDATE_MODE], [
1933 LB_CHECK_COMPILE([if 'posix_acl_update_mode' exists],
1934 posix_acl_update_mode, [
1935 #include <linux/fs.h>
1936 #include <linux/posix_acl.h>
1938 posix_acl_update_mode(NULL, NULL, NULL);
1940 AC_DEFINE(HAVE_POSIX_ACL_UPDATE_MODE, 1,
1941 ['posix_acl_update_mode' is available])
1943 ]) # LC_POSIX_ACL_UPDATE_MODE
1946 # LC_HAVE_BDI_IO_PAGES
1948 # Kernel version 4.9 commit 9491ae4aade6814afcfa67f4eb3e3342c2b39750
1949 # mm: don't cap request size based on read-ahead setting
1950 # This patch introduces a bdi hint, io_pages.
1952 AC_DEFUN([LC_HAVE_BDI_IO_PAGES], [
1953 LB_CHECK_COMPILE([if 'struct backing_dev_info' has 'io_pages' field],
1955 #include <linux/backing-dev.h>
1957 struct backing_dev_info info;
1961 AC_DEFINE(HAVE_BDI_IO_PAGES, 1,
1962 [backing_dev_info has io_pages])
1964 ]) # LC_HAVE_BDI_IO_PAGES
1967 # LC_IOP_GENERIC_READLINK
1969 # Kernel version 4.10 commit dfeef68862edd7d4bafe68ef7aeb5f658ef24bb5
1970 # removed generic_readlink from individual file systems
1972 AC_DEFUN([LC_IOP_GENERIC_READLINK], [
1973 LB_CHECK_COMPILE([if 'generic_readlink' still exist],
1974 inode_ops_readlink, [
1975 #include <linux/fs.h>
1977 struct inode_operations iop;
1978 iop.readlink = generic_readlink;
1980 AC_DEFINE(HAVE_IOP_GENERIC_READLINK, 1,
1981 [generic_readlink has been removed])
1983 ]) # LC_IOP_GENERIC_READLINK
1986 # LC_HAVE_VM_FAULT_ADDRESS
1988 # Kernel version 4.10 commit 1a29d85eb0f19b7d8271923d8917d7b4f5540b3e
1989 # removed virtual_address field. Need to use address field instead
1991 AC_DEFUN([LC_HAVE_VM_FAULT_ADDRESS], [
1992 LB_CHECK_COMPILE([if 'struct vm_fault' replaced virtual_address with address field],
1994 #include <linux/mm.h>
1996 struct vm_fault vmf = { 0 };
1997 unsigned long addr = (unsigned long)vmf.address;
2000 AC_DEFINE(HAVE_VM_FAULT_ADDRESS, 1,
2001 [virtual_address has been replaced by address field])
2003 ]) # LC_HAVE_VM_FAULT_ADDRESS
2006 # LC_INODEOPS_ENHANCED_GETATTR
2008 # Kernel version 4.11 commit a528d35e8bfcc521d7cb70aaf03e1bd296c8493f
2009 # expanded getattr to be able to get more stat information.
2011 AC_DEFUN([LC_INODEOPS_ENHANCED_GETATTR], [
2012 LB_CHECK_COMPILE([if 'inode_operations' getattr member can gather advance stats],
2014 #include <linux/fs.h>
2018 ((struct inode_operations *)1)->getattr(&path, NULL, 0, 0);
2020 AC_DEFINE(HAVE_INODEOPS_ENHANCED_GETATTR, 1,
2021 [inode_operations .getattr member function can gather advance stats])
2023 ]) # LC_INODEOPS_ENHANCED_GETATTR
2026 # LC_VM_OPERATIONS_REMOVE_VMF_ARG
2028 # Kernel version 4.11 commit 11bac80004499ea59f361ef2a5516c84b6eab675
2029 # removed struct vm_area_struct as an argument for vm_operations since
2030 # in the same kernel version struct vma_area_struct was folded into
2033 AC_DEFUN([LC_VM_OPERATIONS_REMOVE_VMF_ARG], [
2034 LB_CHECK_COMPILE([if 'struct vm_operations' removed struct vm_area_struct],
2035 vm_operations_no_vm_area_struct, [
2036 #include <linux/mm.h>
2038 struct vm_fault vmf;
2040 ((struct vm_operations_struct *)0)->fault(&vmf);
2041 ((struct vm_operations_struct *)0)->page_mkwrite(&vmf);
2043 AC_DEFINE(HAVE_VM_OPS_USE_VM_FAULT_ONLY, 1,
2044 ['struct vm_operations' remove struct vm_area_struct argument])
2046 ]) # LC_VM_OPERATIONS_REMOVE_VMF_ARG
2049 # LC_HAVE_KEY_USAGE_REFCOUNT
2051 # Kernel version 4.11 commit fff292914d3a2f1efd05ca71c2ba72a3c663201e
2052 # converted key.usage from atomic_t to refcount_t.
2054 AC_DEFUN([LC_HAVE_KEY_USAGE_REFCOUNT], [
2055 LB_CHECK_COMPILE([if 'key.usage' is refcount_t],
2056 key_usage_refcount, [
2057 #include <linux/key.h>
2059 struct key key = { };
2061 refcount_read(&key.usage);
2063 AC_DEFINE(HAVE_KEY_USAGE_REFCOUNT, 1, [key.usage is of type refcount_t])
2065 ]) #LC_HAVE_KEY_USAGE_REFCOUNT
2068 # LC_HAVE_CRYPTO_MAX_ALG_NAME_128
2070 # Kernel version 4.11 commit f437a3f477cce402dbec6537b29e9e33962c9f73
2071 # switched CRYPTO_MAX_ALG_NAME from 64 to 128.
2073 AC_DEFUN([LC_HAVE_CRYPTO_MAX_ALG_NAME_128], [
2074 LB_CHECK_COMPILE([if 'CRYPTO_MAX_ALG_NAME' is 128],
2075 crypto_max_alg_name, [
2076 #include <linux/crypto.h>
2078 #if CRYPTO_MAX_ALG_NAME != 128
2082 AC_DEFINE(HAVE_CRYPTO_MAX_ALG_NAME_128, 1,
2083 ['CRYPTO_MAX_ALG_NAME' is 128])
2085 ]) # LC_HAVE_CRYPTO_MAX_ALG_NAME_128
2088 # Kernel version 4.12 commit 47f38c539e9a42344ff5a664942075bd4df93876
2089 # CURRENT_TIME is not 64 bit time safe so it was replaced with
2092 AC_DEFUN([LC_CURRENT_TIME], [
2093 LB_CHECK_COMPILE([if CURRENT_TIME has been replaced with current_time],
2095 #include <linux/fs.h>
2099 attr.ia_atime = current_time(NULL);
2101 AC_DEFINE(HAVE_CURRENT_TIME, 1,
2102 [current_time() has replaced CURRENT_TIME])
2104 ]) # LIBCFS_CURRENT_TIME
2107 # LC_HAVE_GET_INODE_USAGE
2109 # Kernel version v4.12-rc2-43-g7a9ca53aea10
2111 AC_DEFUN([LC_HAVE_GET_INODE_USAGE], [
2112 LB_CHECK_COMPILE([if get_inode_usage exists],
2115 #include <linux/quota.h>
2117 struct dquot_operations ops = { };
2119 ops.get_inode_usage(NULL, NULL);
2121 AC_DEFINE(HAVE_GET_INODE_USAGE, 1,
2122 [get_inode_usage function exists])
2124 ]) # LC_HAVE_GET_INODE_USAGE
2128 # Kernel version 4.12-rc3 85787090a21eb749d8b347eaf9ff1a455637473c
2129 # changed struct super_block s_uuid into a proper uuid_t
2131 AC_DEFUN([LC_SUPER_BLOCK_S_UUID], [
2132 LB_CHECK_COMPILE([if 'struct super_block' s_uuid is uuid_t],
2133 super_block_s_uuid, [
2134 #include <linux/fs.h>
2136 struct super_block sb;
2138 uuid_parse(NULL, &sb.s_uuid);
2140 AC_DEFINE(HAVE_S_UUID_AS_UUID_T, 1, ['s_uuid' is an uuid_t])
2142 ]) # LC_SUPER_BLOCK_S_UUID
2145 # LC_SUPER_SETUP_BDI_NAME
2147 # Kernel version 4.12 commit 9594caf216dc0fe3e318b34af0127276db661241
2148 # unified bdi handling
2150 AC_DEFUN([LC_SUPER_SETUP_BDI_NAME], [
2151 LB_CHECK_COMPILE([if 'super_setup_bdi_name' exist],
2152 super_setup_bdi_name, [
2153 #include <linux/fs.h>
2155 super_setup_bdi_name(NULL, "lustre");
2157 AC_DEFINE(HAVE_SUPER_SETUP_BDI_NAME, 1,
2158 ['super_setup_bdi_name' is available])
2160 ]) # LC_SUPER_SETUP_BDI_NAME
2165 # 4.12 replace bi_error to bi_status
2167 AC_DEFUN([LC_BI_STATUS], [
2168 LB_CHECK_COMPILE([if 'bi_status' exist],
2170 #include <linux/blk_types.h>
2172 ((struct bio *)0)->bi_status = 0;
2174 AC_DEFINE(HAVE_BI_STATUS, 1,
2175 ['bi_status' is available])
2180 # LC_BIO_INTEGRITY_ENABLED
2182 # 4.13 removed bio_integrity_enabled
2184 AC_DEFUN([LC_BIO_INTEGRITY_ENABLED], [
2185 LB_CHECK_COMPILE([if 'bio_integrity_enabled' exist],
2186 bio_integrity_enabled, [
2187 #include <linux/bio.h>
2189 bio_integrity_enabled(NULL);
2191 AC_DEFINE(HAVE_BIO_INTEGRITY_ENABLED, 1,
2192 ['bio_integrity_enabled' is available])
2194 ]) # LC_BIO_INTEGRITY_ENABLED
2197 # LC_PAGEVEC_INIT_ONE_PARAM
2199 # 4.14 pagevec_init takes one parameter
2201 AC_DEFUN([LC_PAGEVEC_INIT_ONE_PARAM], [
2202 LB_CHECK_COMPILE([if 'pagevec_init' takes one parameter],
2204 #include <linux/pagevec.h>
2208 AC_DEFINE(HAVE_PAGEVEC_INIT_ONE_PARAM, 1,
2209 ['pagevec_init' takes one parameter])
2211 ]) # LC_PAGEVEC_INIT_ONE_PARAM
2216 # 4.14 replaced bi_bdev to bi_disk
2218 AC_DEFUN([LC_BI_BDEV], [
2219 LB_CHECK_COMPILE([if 'bi_bdev' exist],
2221 #include <linux/bio.h>
2223 ((struct bio *)0)->bi_bdev = NULL;
2225 AC_DEFINE(HAVE_BI_BDEV, 1,
2226 ['bi_bdev' is available])
2231 # LC_INTERVAL_TREE_CACHED
2233 # 4.14 f808c13fd3738948e10196496959871130612b61
2234 # switched INTERVAL_TREE_DEFINE to use cached RB_Trees.
2236 AC_DEFUN([LC_INTERVAL_TREE_CACHED], [
2237 tmp_flags="$EXTRA_KCFLAGS"
2238 EXTRA_KCFLAGS="-Werror"
2239 LB_CHECK_COMPILE([if interval_trees use rb_tree_cached],
2241 #include <linux/interval_tree_generic.h>
2242 struct foo { struct rb_node rb; int last; int a,b;};
2243 #define START(n) ((n)->a)
2244 #define LAST(n) ((n)->b)
2245 struct rb_root_cached tree;
2246 INTERVAL_TREE_DEFINE(struct foo, rb, int, last,
2247 START, LAST, , foo);
2249 foo_insert(NULL, &tree);
2251 AC_DEFINE(HAVE_INTERVAL_TREE_CACHED, 1,
2252 [interval trees use rb_tree_cached])
2254 EXTRA_KCFLAGS="$tmp_flags"
2255 ]) # LC_INTERVAL_TREE_CACHED
2260 # 4.14 introduced IS_ENCRYPTED and S_ENCRYPTED
2262 AC_DEFUN([LC_IS_ENCRYPTED], [
2263 LB_CHECK_COMPILE([if IS_ENCRYPTED is defined],
2265 #include <linux/fs.h>
2267 IS_ENCRYPTED((struct inode *)0);
2269 has_is_encrypted="yes"
2271 ]) # LC_IS_ENCRYPTED
2276 # kernel 4.17 commit b93b016313b3ba8003c3b8bb71f569af91f19fc7
2278 AC_DEFUN([LC_I_PAGES], [
2279 LB_CHECK_COMPILE([if struct address_space has i_pages],
2281 #include <linux/fs.h>
2283 struct address_space mapping = {};
2286 i_pages = &mapping.i_pages;
2288 AC_DEFINE(HAVE_I_PAGES, 1,
2289 [struct address_space has i_pages])
2296 # kernel 4.17 commit 3d3539018d2cbd12e5af4a132636ee7fd8d43ef0
2297 # mm: create the new vm_fault_t type
2299 AC_DEFUN([LC_VM_FAULT_T], [
2300 LB_CHECK_COMPILE([if vm_fault_t type exists],
2302 #include <linux/mm_types.h>
2304 vm_fault_t x = VM_FAULT_SIGBUS;
2307 AC_DEFINE(HAVE_VM_FAULT_T, 1,
2308 [if vm_fault_t type exists])
2315 # kernel 4.17 commit 3d3539018d2cbd12e5af4a132636ee7fd8d43ef0
2316 # mm: VM_FAULT_RETRY is defined in enum vm_fault_reason
2318 AC_DEFUN([LC_VM_FAULT_RETRY], [
2319 LB_CHECK_COMPILE([if VM_FAULT_RETRY is defined],
2321 #include <linux/mm.h>
2323 #ifndef VM_FAULT_RETRY
2328 AC_DEFINE(HAVE_VM_FAULT_RETRY, 1,
2329 [if VM_FAULT_RETRY is defined])
2331 ]) # LC_VM_FAULT_RETRY
2334 # LC_ALLOC_FILE_PSEUDO
2336 # kernel 4.18-rc1 commit d93aa9d82aea80b80f225dbf9c7986df444d8106
2337 # new wrapper: alloc_file_pseudo()
2339 AC_DEFUN([LC_ALLOC_FILE_PSEUDO], [
2340 LB_CHECK_COMPILE([if 'alloc_file_pseudo' is defined],
2341 alloc_file_pseudo, [
2342 #include <linux/file.h>
2345 file = alloc_file_pseudo(NULL, NULL, "[test]",
2348 AC_DEFINE(HAVE_ALLOC_FILE_PSEUDO, 1,
2349 ['alloc_file_pseudo' exist])
2351 ]) # LC_ALLOC_FILE_PSEUDO
2354 # LC_INODE_TIMESPEC64
2356 # kernel 4.17-rc7 commit 8efd6894ff089adeeac7cb9f32125b85d963d1bc
2357 # fs: add timespec64_truncate()
2358 # kernel 4.18 commit 95582b00838837fc07e042979320caf917ce3fe6
2359 # inode timestamps switched to timespec64
2360 # kernel 4.19-rc2 commit 976516404ff3fab2a8caa8bd6f5efc1437fed0b8
2361 # y2038: remove unused time interfaces
2365 # When inode times are timespec64 stop using the deprecated
2368 # kernel v5.5-rc1-6-gba70609d5ec6 ba70609d5ec664a8f36ba1c857fcd97a478adf79
2369 # fs: Delete timespec64_trunc()
2371 AC_DEFUN([LC_INODE_TIMESPEC64], [
2372 tmp_flags="$EXTRA_KCFLAGS"
2373 EXTRA_KCFLAGS="-Werror"
2374 LB_CHECK_COMPILE([if inode timestamps are struct timespec64],
2376 #include <linux/fs.h>
2378 struct inode *inode = NULL;
2379 struct timespec64 ts = {0, 1};
2381 inode->i_atime = ts;
2384 AC_DEFINE(HAVE_INODE_TIMESPEC64, 1,
2385 [inode times are using timespec64])
2387 EXTRA_KCFLAGS="$tmp_flags"
2388 ]) # LC_INODE_TIMESPEC64
2391 # LC_RADIX_TREE_TAG_SET
2393 # kernel 4.20 commit v4.19-rc5-248-g9b89a0355144
2394 # xarray: Add XArray marks - replaced radix_tree_tag_set
2396 AC_DEFUN([LC_RADIX_TREE_TAG_SET], [
2397 tmp_flags="$EXTRA_KCFLAGS"
2398 EXTRA_KCFLAGS="-Werror"
2399 LB_CHECK_COMPILE([if 'radix_tree_tag_set' exists],
2400 radix_tree_tag_set, [
2401 #include <linux/fs.h>
2402 #include <linux/radix-tree.h>
2404 radix_tree_tag_set(NULL, 0, PAGECACHE_TAG_DIRTY);
2406 AC_DEFINE(HAVE_RADIX_TREE_TAG_SET, 1,
2407 [radix_tree_tag_set exists])
2409 EXTRA_KCFLAGS="$tmp_flags"
2410 ]) # LC_RADIX_TREE_TAG_SET
2413 # LC_UAPI_LINUX_MOUNT_H
2415 # kernel 4.20 commit e262e32d6bde0f77fb0c95d977482fc872c51996
2416 # vfs: Suppress MS_* flag defs within the kernel ...
2418 AC_DEFUN([LC_UAPI_LINUX_MOUNT_H], [
2419 tmp_flags="$EXTRA_KCFLAGS"
2420 EXTRA_KCFLAGS="-Werror"
2421 LB_CHECK_COMPILE([if MS_RDONLY was moved to uapi/linux/mount.h],
2423 #include <uapi/linux/mount.h>
2428 AC_DEFINE(HAVE_UAPI_LINUX_MOUNT_H, 1,
2429 [if MS_RDONLY was moved to uapi/linux/mount.h])
2431 EXTRA_KCFLAGS="$tmp_flags"
2432 ]) # LC_UAPI_LINUX_MOUNT_H
2435 # LC_HAVE_SUNRPC_CACHE_HASH_LOCK_IS_A_SPINLOCK
2437 # kernel 4.20 commit 1863d77f15da0addcd293a1719fa5d3ef8cde3ca
2438 # SUNRPC: Replace the cache_detail->hash_lock with a regular spinlock
2440 # Now that the reader functions are all RCU protected, use a regular
2441 # spinlock rather than a reader/writer lock.
2443 AC_DEFUN([LC_HAVE_SUNRPC_CACHE_HASH_LOCK_IS_A_SPINLOCK], [
2444 tmp_flags="$EXTRA_KCFLAGS"
2445 EXTRA_KCFLAGS="-Werror"
2446 LB_CHECK_COMPILE([if cache_detail->hash_lock is a spinlock],
2447 hash_lock_isa_spinlock_t, [
2448 #include <linux/sunrpc/cache.h>
2450 spinlock_t *lock = &(((struct cache_detail *)0)->hash_lock);
2453 AC_DEFINE(HAVE_CACHE_HASH_SPINLOCK, 1,
2454 [if cache_detail->hash_lock is a spinlock])
2456 EXTRA_KCFLAGS="$tmp_flags"
2457 ]) # LC_HAVE_SUNRPC_CACHE_HASH_LOCK_IS_A_SPINLOCK
2460 # LC_HAS_LINUX_SELINUX_ENABLED
2462 # kernel 5.1 commit 3d252529480c68bfd6a6774652df7c8968b28e41
2463 # SELinux: Remove unused selinux_is_enabled
2465 AC_DEFUN([LC_HAS_LINUX_SELINUX_ENABLED], [
2466 tmp_flags="$EXTRA_KCFLAGS"
2467 EXTRA_KCFLAGS="-Werror"
2468 LB_CHECK_COMPILE([if linux/selinux.h exists],
2469 selinux_is_enabled, [
2470 #include <linux/selinux.h>
2472 bool has_selinux = selinux_is_enabled();
2475 AC_DEFINE(HAVE_LINUX_SELINUX_IS_ENABLED, 1,
2476 [if linux/selinux.h exists])
2478 EXTRA_KCFLAGS="$tmp_flags"
2479 ]) # LC_HAS_LINUX_SELINUX_ENABLED
2482 # LB_HAVE_BVEC_ITER_ALL
2484 # kernel 5.1 commit 6dc4f100c175dd0511ae8674786e7c9006cdfbfa
2485 # block: allow bio_for_each_segment_all() to iterate over multi-page bvec
2487 AC_DEFUN([LB_HAVE_BVEC_ITER_ALL], [
2488 tmp_flags="$EXTRA_KCFLAGS"
2489 EXTRA_KCFLAGS="-Werror"
2490 LB_CHECK_COMPILE([if bvec_iter_all exists for multi-page bvec iternation],
2492 #include <linux/bvec.h>
2494 struct bvec_iter_all iter;
2497 AC_DEFINE(HAVE_BVEC_ITER_ALL, 1,
2498 [if bvec_iter_all exists for multi-page bvec iternation])
2500 EXTRA_KCFLAGS="$tmp_flags"
2501 ]) # LB_HAVE_BVEC_ITER_ALL
2504 # LC_ACCOUNT_PAGE_DIRTIED
2506 # After 5.2 kernel page dirtied is not exported
2508 AC_DEFUN([LC_ACCOUNT_PAGE_DIRTIED], [
2509 LB_CHECK_EXPORT([account_page_dirtied], [mm/page-writeback.c],
2510 [AC_DEFINE(HAVE_ACCOUNT_PAGE_DIRTIED_EXPORT, 1,
2511 [account_page_dirtied is exported])])
2512 ]) # LC_ACCOUNT_PAGE_DIRTIED
2515 # LC_KEYRING_SEARCH_4ARGS
2517 # Kernel 5.2 commit dcf49dbc8077
2518 # keys: Add a 'recurse' flag for keyring searches
2520 AC_DEFUN([LC_KEYRING_SEARCH_4ARGS], [
2521 LB_CHECK_COMPILE([if 'keyring_search' has 4 args],
2522 keyring_search_4args, [
2523 #include <linux/key.h>
2526 keyring_search(keyring, NULL, NULL, false);
2528 AC_DEFINE(HAVE_KEYRING_SEARCH_4ARGS, 1,
2529 [keyring_search has 4 args])
2531 ]) # LC_KEYRING_SEARCH_4ARGS
2534 # LC_BIO_BI_PHYS_SEGMENTS
2536 # kernel 5.3-rc1 commit 14ccb66b3f585b2bc21e7256c96090abed5a512c
2537 # block: remove the bi_phys_segments field in struct bio
2539 AC_DEFUN([LC_BIO_BI_PHYS_SEGMENTS], [
2540 tmp_flags="$EXTRA_KCFLAGS"
2541 EXTRA_KCFLAGS="-Werror"
2542 LB_CHECK_COMPILE([if struct bio has bi_phys_segments member],
2543 bye_bio_bi_phys_segments, [
2544 #include <linux/bio.h>
2546 struct bio *bio = NULL;
2547 bio->bi_phys_segments++;
2549 AC_DEFINE(HAVE_BIO_BI_PHYS_SEGMENTS, 1,
2550 [struct bio has bi_phys_segments member])
2552 EXTRA_KCFLAGS="$tmp_flags"
2553 ]) # LC_BIO_BI_PHYS_SEGMENTS
2556 # LC_LM_COMPARE_OWNER_EXISTS
2558 # kernel 5.3-rc3 commit f85d93385e9fe6886a751f647f6812a89bf6bee3
2559 # locks: Cleanup lm_compare_owner and lm_owner_key
2560 # removed lm_compare_owner
2562 AC_DEFUN([LC_LM_COMPARE_OWNER_EXISTS], [
2563 tmp_flags="$EXTRA_KCFLAGS"
2564 EXTRA_KCFLAGS="-Werror"
2565 LB_CHECK_COMPILE([if lock_manager_operations has lm_compare_owner],
2566 lock_manager_ops_lm_compare_owner, [
2567 #include <linux/fs.h>
2569 struct lock_manager_operations lm_ops;
2570 lm_ops.lm_compare_owner = NULL;
2572 AC_DEFINE(HAVE_LM_COMPARE_OWNER, 1,
2573 [lock_manager_operations has lm_compare_owner])
2575 EXTRA_KCFLAGS="$tmp_flags"
2576 ]) # LC_LM_COMPARE_OWNER_EXISTS
2579 # LC_FSCRYPT_SUPPORT
2581 # 5.4 introduced fscrypt encryption policies v2
2583 AC_DEFUN([LC_FSCRYPT_SUPPORT], [
2584 LB_CHECK_COMPILE([for fscrypt in-kernel support],
2586 #define __FS_HAS_ENCRYPTION 0
2587 #include <linux/fscrypt.h>
2589 fscrypt_ioctl_get_policy_ex(NULL, NULL);
2591 has_fscrypt_support="yes"
2593 ]) # LC_FSCRYPT_SUPPORT
2596 # LC_FSCRYPT_DIGESTED_NAME
2598 # Kernel 5.5-rc4 edc440e3d27fb31e6f9663cf413fad97d714c060
2599 # improved the format of no-key names. This results in the
2600 # removal of FSCRYPT_FNAME_DIGEST and FSCRYPT_FNAME_DIGEST_SIZE.
2602 AC_DEFUN([LC_FSCRYPT_DIGESTED_NAME], [
2603 tmp_flags="$EXTRA_KCFLAGS"
2604 EXTRA_KCFLAGS="-Werror"
2605 LB_CHECK_COMPILE([if fscrypt has 'struct fscrypt_digested_name'],
2606 fscrypt_digested_name, [
2607 #include <linux/fscrypt.h>
2609 struct fscrypt_digested_name fname;
2613 AC_DEFINE(HAVE_FSCRYPT_DIGESTED_NAME, 1,
2614 ['struct fscrypt_digested_name' exists])
2616 EXTRA_KCFLAGS="$tmp_flags"
2617 ]) # LC_FSCRYPT_DIGESTED_NAME
2620 # LC_FSCRYPT_DUMMY_CONTEXT_ENABLED
2622 # Kernel 5.7-rc7 ed318a6cc0b620440e65f48eb527dc3df7269ce4
2623 # replaces fscrypt_dummy_context_enabled() with
2624 # fscrypt_get_dummy_context(). Later kernels rename
2625 # fscrypt_get_dummy_context() to fscrypt_get_dummy_policy()
2626 # which is why we test fscrypt_dummy_context_enabled().
2628 AC_DEFUN([LC_FSCRYPT_DUMMY_CONTEXT_ENABLED], [
2629 tmp_flags="$EXTRA_KCFLAGS"
2630 EXTRA_KCFLAGS="-Werror"
2631 LB_CHECK_COMPILE([if fscrypt_dummy_context_enabled() exists],
2632 fscrypt_dummy_context_enabled, [
2633 #include <linux/fscrypt.h>
2635 fscrypt_dummy_context_enabled(NULL);
2637 AC_DEFINE(HAVE_FSCRYPT_DUMMY_CONTEXT_ENABLED, 1,
2638 [fscrypt_dummy_context_enabled() exists])
2640 EXTRA_KCFLAGS="$tmp_flags"
2641 ]) # LC_FSCRYPT_DUMMY_CONTEXT_ENABLED
2644 # LC_HAVE_ITER_FILE_SPLICE_WRITE
2646 # Linux commit v5.9-rc1-6-g36e2c7421f02
2647 # fs: don't allow splice read/write without explicit ops
2649 AC_DEFUN([LC_HAVE_ITER_FILE_SPLICE_WRITE], [
2650 tmp_flags="$EXTRA_KCFLAGS"
2651 EXTRA_KCFLAGS="-Werror"
2652 LB_CHECK_COMPILE([if 'iter_file_splice_write' exists],
2653 iter_file_splice_write, [
2654 #include <linux/fs.h>
2656 (void)iter_file_splice_write(NULL, NULL, NULL, 1, 0);
2658 AC_DEFINE(HAVE_ITER_FILE_SPLICE_WRITE, 1,
2659 ['iter_file_splice_write' exists])
2661 EXTRA_KCFLAGS="$tmp_flags"
2662 ]) # LC_HAVE_ITER_FILE_SPLICE_WRITE
2665 # LC_FSCRYPT_IS_NOKEY_NAME
2667 # Kernel 5.10-rc4 159e1de201b6fca10bfec50405a3b53a561096a8
2668 # introduced fscrypt_is_nokey_name() inline macro. While
2669 # introduced for 5.10 kernels it was backported to earlier
2670 # Ubuntu kernels. Also it hides the change introduced due
2671 # to git commit 501e43fbe for kernel 5.9 which also was
2672 # backported to earlier Ubuntu kernels.
2674 AC_DEFUN([LC_FSCRYPT_IS_NOKEY_NAME], [
2675 tmp_flags="$EXTRA_KCFLAGS"
2676 EXTRA_KCFLAGS="-Werror"
2677 LB_CHECK_COMPILE([if fscrypt_is_nokey_name() exists],
2678 fscrypt_is_no_key_name, [
2679 #include <linux/fscrypt.h>
2681 fscrypt_is_nokey_name(NULL);
2683 AC_DEFINE(HAVE_FSCRYPT_IS_NOKEY_NAME, 1,
2684 [fscrypt_is_nokey_name() exists])
2686 EXTRA_KCFLAGS="$tmp_flags"
2687 ]) # LC_FSCRYPT_IS_NOKEY_NAME
2692 # Linux: v5.11-rc5-9-g309dca309fc3
2693 # block: store a block_device pointer in struct bio
2694 # created bio_set_dev macro
2695 # Linux: v5.15-rc6-127-gcf6d6238cdd3
2696 # block: turn macro helpers into inline functions
2697 # created inline function(s).
2699 # Only provide a bio_set_dev it is is not proveded by the kernel
2701 AC_DEFUN([LC_BIO_SET_DEV], [
2702 tmp_flags="$EXTRA_KCFLAGS"
2703 EXTRA_KCFLAGS="-Werror"
2704 LB_CHECK_COMPILE([if 'bio_set_dev' is available],
2706 #include <linux/bio.h>
2708 struct bio *bio = NULL;
2709 struct block_device *bdev = NULL;
2711 bio_set_dev(bio, bdev);
2713 AC_DEFINE(HAVE_BIO_SET_DEV, 1, ['bio_set_dev' is available])
2715 EXTRA_KCFLAGS="$tmp_flags"
2719 # LC_HAVE_USER_NAMESPACE_ARG
2721 # kernel 5.12 commit 549c7297717c32ee53f156cd949e055e601f67bb
2722 # fs: make helpers idmap mount aware
2723 # Extend some inode methods with an additional user namespace argument.
2725 AC_DEFUN([LC_HAVE_USER_NAMESPACE_ARG], [
2726 tmp_flags="$EXTRA_KCFLAGS"
2727 EXTRA_KCFLAGS="-Werror"
2728 LB_CHECK_COMPILE([if 'inode_operations' members have user namespace argument],
2729 user_namespace_argument, [
2730 #include <linux/fs.h>
2732 ((struct inode_operations *)1)->getattr((struct user_namespace *)NULL,
2735 AC_DEFINE(HAVE_USER_NAMESPACE_ARG, 1,
2736 ['inode_operations' members have user namespace argument])
2738 EXTRA_KCFLAGS="$tmp_flags"
2739 ]) # LC_HAVE_USER_NAMESPACE_ARG
2742 # LC_HAVE_GET_ACL_RCU_ARG
2744 # kernel 5.15 commit 0cad6246621b5887d5b33fea84219d2a71f2f99a
2745 # vfs: add rcu argument to ->get_acl() callback
2746 # Add a rcu argument to the ->get_acl() callback to allow
2747 # get_cached_acl_rcu() to call the ->get_acl() method.
2749 AC_DEFUN([LC_HAVE_GET_ACL_RCU_ARG], [
2750 tmp_flags="$EXTRA_KCFLAGS"
2751 EXTRA_KCFLAGS="-Werror"
2752 LB_CHECK_COMPILE([if 'get_acl' has a rcu argument],
2753 get_acl_rcu_argument, [
2754 #include <linux/fs.h>
2756 ((struct inode_operations *)1)->get_acl((struct inode *)NULL, 0, false);
2758 AC_DEFINE(HAVE_GET_ACL_RCU_ARG, 1,
2759 ['get_acl' has a rcu argument])
2761 EXTRA_KCFLAGS="$tmp_flags"
2762 ]) # LC_HAVE_GET_ACL_RCU_ARG
2765 # LC_HAVE_KIOCB_COMPLETE_2ARGS
2767 # kernel v5.15-rc6-145-g6b19b766e8f0
2768 # fs: get rid of the res2 iocb->ki_complete argument
2770 AC_DEFUN([LC_HAVE_KIOCB_COMPLETE_2ARGS], [
2771 tmp_flags="$EXTRA_KCFLAGS"
2772 EXTRA_KCFLAGS="-Werror"
2773 LB_CHECK_COMPILE([if kiocb->ki_complete() has 2 arguments],
2774 kiocb_ki_complete_2args, [
2775 #include <linux/fs.h>
2777 static void complete_fn(struct kiocb *iocb, long ret)
2783 struct kiocb *kio = NULL;
2785 kio->ki_complete = complete_fn;
2787 AC_DEFINE(HAVE_KIOCB_COMPLETE_2ARGS, 1,
2788 [kiocb->ki_complete() has 2 arguments])
2790 EXTRA_KCFLAGS="$tmp_flags"
2791 ]) # LC_HAVE_KIOCB_COMPLETE_2ARGS
2793 AC_DEFUN([LC_PROG_LINUX_SRC], [])
2794 AC_DEFUN([LC_PROG_LINUX_RESULTS], [])
2799 # Lustre linux kernel checks
2801 AC_DEFUN([LC_PROG_LINUX], [
2802 AC_MSG_NOTICE([Lustre kernel checks
2803 ==============================================================================])
2808 LC_CONFIG_HEALTH_CHECK_WRITE
2809 LC_CONFIG_LRU_RESIZE
2814 LC_HAVE_PROJECT_QUOTA
2821 LC_HAVE_DENTRY_D_U_D_ALIAS
2822 LC_HAVE_DENTRY_D_CHILD
2823 LC_PID_NS_FOR_CHILDREN
2826 LC_OLDSIZE_TRUNCATE_PAGECACHE
2827 LC_PTR_ERR_OR_ZERO_MISSING
2829 LC_REGISTER_SHRINKER_RET
2834 LC_HAVE_D_IS_POSITIVE
2838 LC_HAVE_TRUNCATE_IPAGES_FINAL
2839 LC_IOPS_RENAME_WITH_FLAGS
2846 LC_DIRECTIO_USE_ITER
2847 LC_HAVE_IOV_ITER_INIT_DIRECTION
2848 LC_HAVE_IOV_ITER_TRUNCATE
2849 LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER
2852 LC_HAVE_INTERVAL_BLK_INTEGRITY
2856 LC_PERCPU_COUNTER_INIT
2857 LC_NFS_FILLDIR_USE_CTX
2861 LC_HAVE_DQUOT_QC_DQBLK
2862 LC_HAVE_AIO_COMPLETE
2863 LC_HAVE_IS_ROOT_INODE
2866 LC_BACKING_DEV_INFO_REMOVAL
2867 LC_HAVE_BDI_CAP_MAP_COPY
2871 LC_HAVE_SYNC_READ_WRITE
2875 LC_BIO_ENDIO_USES_ONE_ARG
2876 LC_SYMLINK_OPS_USE_NAMEIDATA
2877 LC_ACCOUNT_PAGE_DIRTIED_3ARGS
2878 LC_HAVE_CRYPTO_ALLOC_SKCIPHER
2881 LC_HAVE_INTERVAL_EXP_BLK_INTEGRITY
2882 LC_HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD
2883 LC_HAVE_CACHE_HEAD_HLIST
2884 LC_HAVE_XATTR_HANDLER_SIMPLIFIED
2887 LC_HAVE_LOCKS_LOCK_FILE_WAIT
2888 LC_HAVE_KEY_PAYLOAD_DATA_ARRAY
2889 LC_HAVE_XATTR_HANDLER_NAME
2891 LC_HAVE_SUBMIT_BIO_2ARGS
2892 LC_HAVE_CLEAN_BDEV_ALIASES
2899 LC_HAVE_IOP_GET_LINK
2902 LC_HAVE_IN_COMPAT_SYSCALL
2903 LC_HAVE_XATTR_HANDLER_INODE_PARAM
2905 LC_HAVE_DOWN_WRITE_KILLABLE
2911 LC_GENERIC_WRITE_SYNC_2ARGS
2912 LC_FOP_ITERATE_SHARED
2915 LC_EXPORT_DEFAULT_FILE_SPLICE_READ
2916 LC_HAVE_POSIX_ACL_VALID_USER_NS
2918 LC_FULL_NAME_HASH_3ARGS
2919 LC_STRUCT_POSIX_ACL_XATTR
2925 LC_POSIX_ACL_UPDATE_MODE
2926 LC_HAVE_BDI_IO_PAGES
2929 LC_IOP_GENERIC_READLINK
2930 LC_HAVE_VM_FAULT_ADDRESS
2933 LC_INODEOPS_ENHANCED_GETATTR
2934 LC_VM_OPERATIONS_REMOVE_VMF_ARG
2935 LC_HAVE_KEY_USAGE_REFCOUNT
2936 LC_HAVE_CRYPTO_MAX_ALG_NAME_128
2940 LC_SUPER_BLOCK_S_UUID
2941 LC_SUPER_SETUP_BDI_NAME
2945 LC_BIO_INTEGRITY_ENABLED
2946 LC_BIO_INTEGRITY_PREP_FN_RETURNS_BOOL
2947 LC_HAVE_GET_INODE_USAGE
2950 LC_PAGEVEC_INIT_ONE_PARAM
2952 LC_INTERVAL_TREE_CACHED
2960 LC_ALLOC_FILE_PSEUDO
2964 LC_RADIX_TREE_TAG_SET
2965 LC_UAPI_LINUX_MOUNT_H
2966 LC_HAVE_SUNRPC_CACHE_HASH_LOCK_IS_A_SPINLOCK
2969 LC_HAS_LINUX_SELINUX_ENABLED
2970 LB_HAVE_BVEC_ITER_ALL
2973 LC_ACCOUNT_PAGE_DIRTIED
2974 LC_KEYRING_SEARCH_4ARGS
2977 LC_BIO_BI_PHYS_SEGMENTS
2978 LC_LM_COMPARE_OWNER_EXISTS
2981 LC_FSCRYPT_DIGESTED_NAME
2984 LC_FSCRYPT_DUMMY_CONTEXT_ENABLED
2987 LC_HAVE_ITER_FILE_SPLICE_WRITE
2990 LC_FSCRYPT_IS_NOKEY_NAME
2996 LC_HAVE_USER_NAMESPACE_ARG
2999 LC_HAVE_GET_ACL_RCU_ARG
3002 LC_HAVE_KIOCB_COMPLETE_2ARGS
3004 # kernel patch to extend integrity interface
3005 LC_BIO_INTEGRITY_PREP_FN
3008 AS_IF([test "x$enable_server" != xno], [
3018 # Check whether to build the client side of Lustre
3020 AC_DEFUN([LC_CONFIG_CLIENT], [
3021 AC_MSG_CHECKING([whether to build Lustre client support])
3022 AC_ARG_ENABLE([client],
3023 AS_HELP_STRING([--disable-client],
3024 [disable Lustre client support]),
3025 [], [enable_client="yes"])
3026 AC_MSG_RESULT([$enable_client])
3027 ]) # LC_CONFIG_CLIENT
3032 AC_DEFUN([LB_CONFIG_MPITESTS], [
3033 AC_ARG_ENABLE([mpitests],
3034 AS_HELP_STRING([--enable-mpitests=<yes|no|mpicc wrapper>],
3035 [include mpi tests]), [
3036 enable_mpitests="yes"
3039 MPICC_WRAPPER="mpicc"
3040 MPI_BIN=$(eval which $MPICC_WRAPPER | xargs dirname)
3043 enable_mpitests="no"
3047 MPICC_WRAPPER=$enableval
3048 MPI_BIN=$(eval echo $MPICC_WRAPPER | xargs dirname)
3052 enable_mpitests="yes"
3053 MPICC_WRAPPER="mpicc"
3054 MPI_BIN=$(eval which $MPICC_WRAPPER | xargs dirname)
3057 if test "x$enable_mpitests" != "xno"; then
3060 AC_CACHE_CHECK([whether mpitests can be built],
3061 lb_cv_mpi_tests, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([
3065 MPI_Initialized(&flag);
3068 ])], [lb_cv_mpi_tests="yes"], [lb_cv_mpi_tests="no"])
3070 enable_mpitests=$lb_cv_mpi_tests
3074 AC_SUBST(MPICC_WRAPPER)
3075 ]) # LB_CONFIG_MPITESTS
3080 # whether to enable quota support global control
3082 AC_DEFUN([LC_CONFIG_QUOTA], [
3083 AC_MSG_CHECKING([whether to enable quota support global control])
3084 AC_ARG_ENABLE([quota],
3085 AS_HELP_STRING([--enable-quota],
3086 [enable quota support]),
3087 [], [enable_quota="yes"])
3088 AS_IF([test "x$enable_quota" = xyes],
3089 [AC_MSG_RESULT([yes])],
3090 [AC_MSG_RESULT([no])])
3091 ]) # LC_CONFIG_QUOTA
3096 AC_DEFUN([LC_QUOTA], [
3100 AS_IF([test "x$enable_quota" != xno -a "x$enable_utils" != xno], [
3101 AC_CHECK_HEADER([sys/quota.h],
3102 [AC_DEFINE(HAVE_SYS_QUOTA_H, 1,
3103 [Define to 1 if you have <sys/quota.h>.])],
3104 [AC_MSG_ERROR([don't find <sys/quota.h> in your system])])
3111 # configure support for optional OSD implementation
3113 AC_DEFUN([LC_OSD_ADDON], [
3114 AC_MSG_CHECKING([whether to use OSD addon])
3116 AS_HELP_STRING([--with-osd=path],
3117 [set path to optional osd]),
3124 OSDADDON="$with_osd"
3131 AS_IF([test $ENABLEOSDADDON -eq 0], [
3135 OSDMODNAME=$(basename $OSDADDON)
3136 AS_IF([test -e $LUSTRE/$OSDMODNAME], [
3137 AC_MSG_RESULT([can't link])
3139 ], [ln -s $OSDADDON $LUSTRE/$OSDMODNAME], [
3140 AC_MSG_RESULT([$OSDMODNAME])
3141 OSDADDON="obj-m += $OSDMODNAME/"
3143 AC_MSG_RESULT([can't link])
3153 # Check whether to enable Lustre client crypto
3155 AC_DEFUN([LC_CONFIG_CRYPTO], [
3156 AC_MSG_CHECKING([whether to enable Lustre client crypto])
3157 AC_ARG_ENABLE([crypto],
3158 AS_HELP_STRING([--enable-crypto=yes|no|in-kernel],
3159 [enable Lustre client crypto (default is yes), use 'in-kernel' to force use of in-kernel fscrypt instead of embedded llcrypt]),
3160 [], [enable_crypto="auto"])
3161 AS_IF([test "x$enable_crypto" != xno -a "x$enable_dist" = xno], [
3165 LC_FSCRYPT_SUPPORT])
3166 AS_IF([test "x$enable_crypto" = xin-kernel], [
3167 AS_IF([test "x$has_fscrypt_support" = xyes], [
3168 AC_DEFINE(HAVE_LUSTRE_CRYPTO, 1, [Enable Lustre client crypto via in-kernel fscrypt])], [
3169 AC_MSG_ERROR([Lustre client crypto cannot be enabled via in-kernel fscrypt.])
3170 enable_crypto=no])],
3171 [AS_IF([test "x$has_is_encrypted" = xyes], [
3172 AC_DEFINE(HAVE_LUSTRE_CRYPTO, 1, [Enable Lustre client crypto via embedded llcrypt])
3173 AC_DEFINE(CONFIG_LL_ENCRYPTION, 1, [embedded llcrypt])
3174 AC_DEFINE(HAVE_FSCRYPT_DUMMY_CONTEXT_ENABLED, 1, [embedded llcrypt uses llcrypt_dummy_context_enabled()])
3175 enable_crypto="embedded llcrypt"
3176 enable_llcrypt=yes], [
3177 AS_IF([test "x$enable_crypto" = xyes],
3178 [AC_MSG_ERROR([Lustre client crypto cannot be enabled because of lack of encryption support in your kernel.])])
3179 AS_IF([test "x$enable_crypto" != xno -a "x$enable_dist" = xno],
3180 [AC_MSG_WARN(Lustre client crypto cannot be enabled because of lack of encryption support in your kernel.)])
3181 enable_crypto=no])])
3182 AS_IF([test "x$enable_dist" != xno], [
3184 enable_llcrypt=yes])
3185 AC_MSG_RESULT([$enable_crypto])
3186 ]) # LC_CONFIG_CRYPTO
3191 # other configure checks
3193 AC_DEFUN([LC_CONFIGURE], [
3194 AC_MSG_NOTICE([Lustre core checks
3195 ==============================================================================])
3197 AS_IF([test $target_cpu == "i686" -o $target_cpu == "x86_64"],
3198 [CFLAGS="$CFLAGS -Wall -Werror"])
3200 # maximum MDS thread count
3203 # lustre/utils/gss/gss_util.c
3204 # lustre/utils/gss/gssd_proc.c
3205 # lustre/utils/gss/krb5_util.c
3206 # lustre/utils/llog_reader.c
3207 # lustre/utils/create_iam.c
3208 # lustre/utils/libiam.c
3209 AC_CHECK_HEADERS([netdb.h endian.h])
3210 AC_CHECK_FUNCS([gethostbyname])
3212 # lustre/utils/llverfs.c lustre/utils/libmount_utils_ldiskfs.c
3213 AC_CHECK_HEADERS([ext2fs/ext2fs.h], [], [
3214 AS_IF([test "x$enable_utils" = xyes -a "x$enable_ldiskfs" = xyes], [
3216 ext2fs.h not found. Please install e2fsprogs development package.
3221 # lustre/tests/statx_test.c
3222 AC_CHECK_FUNCS([statx])
3224 # lustre/utils/lfs.c
3225 AS_IF([test "$enable_dist" = "no"], [
3226 AC_CHECK_LIB([z], [crc32], [
3227 AC_CHECK_HEADER([zlib.h], [], [
3228 AC_MSG_ERROR([zlib.h not found.])])
3231 zlib library not found. Please install zlib development package.])
3237 AC_CHECK_LIB([selinux], [is_selinux_enabled],
3238 [AC_CHECK_HEADERS([selinux/selinux.h],
3239 [SELINUX="-lselinux"
3240 AC_DEFINE([HAVE_SELINUX], 1,
3241 [support for selinux ])],
3244 No libselinux-devel package found, unable to build selinux enabled tools
3249 No selinux package found, unable to build selinux enabled tools
3254 AC_CHECK_LIB([keyutils], [add_key])
3257 AC_MSG_CHECKING([whether to report minimum OST free space])
3258 AC_ARG_ENABLE([mindf],
3259 AS_HELP_STRING([--enable-mindf],
3260 [Make statfs report the minimum available space on any single OST instead of the sum of free space on all OSTs]),
3261 [], [enable_mindf="no"])
3262 AC_MSG_RESULT([$enable_mindf])
3263 AS_IF([test "$enable_mindf" = "yes"],
3264 [AC_DEFINE([MIN_DF], 1, [Report minimum OST free space])])
3266 AC_MSG_CHECKING([whether to randomly failing memory alloc])
3267 AC_ARG_ENABLE([fail_alloc],
3268 AS_HELP_STRING([--disable-fail-alloc],
3269 [disable randomly alloc failure]),
3270 [], [enable_fail_alloc="yes"])
3271 AC_MSG_RESULT([$enable_fail_alloc])
3272 AS_IF([test "x$enable_fail_alloc" != xno],
3273 [AC_DEFINE([RANDOM_FAIL_ALLOC], 1,
3274 [enable randomly alloc failure])])
3276 AC_MSG_CHECKING([whether to check invariants (expensive cpu-wise)])
3277 AC_ARG_ENABLE([invariants],
3278 AS_HELP_STRING([--enable-invariants],
3279 [enable invariant checking (cpu intensive)]),
3280 [], [enable_invariants="no"])
3281 AC_MSG_RESULT([$enable_invariants])
3282 AS_IF([test "x$enable_invariants" = xyes],
3283 [AC_DEFINE([CONFIG_LUSTRE_DEBUG_EXPENSIVE_CHECK], 1,
3284 [enable invariant checking])])
3286 AC_MSG_CHECKING([whether to track references with lu_ref])
3287 AC_ARG_ENABLE([lu_ref],
3288 AS_HELP_STRING([--enable-lu_ref],
3289 [enable lu_ref reference tracking code]),
3290 [], [enable_lu_ref="no"])
3291 AC_MSG_RESULT([$enable_lu_ref])
3292 AS_IF([test "x$enable_lu_ref" = xyes],
3293 [AC_DEFINE([CONFIG_LUSTRE_DEBUG_LU_REF], 1,
3294 [enable lu_ref reference tracking code])])
3296 AC_MSG_CHECKING([whether to enable page state tracking])
3297 AC_ARG_ENABLE([pgstate-track],
3298 AS_HELP_STRING([--enable-pgstate-track],
3299 [enable page state tracking]),
3300 [], [enable_pgstat_track="no"])
3301 AC_MSG_RESULT([$enable_pgstat_track])
3302 AS_IF([test "x$enable_pgstat_track" = xyes],
3303 [AC_DEFINE([CONFIG_DEBUG_PAGESTATE_TRACKING], 1,
3304 [enable page state tracking code])])
3307 AC_MSG_CHECKING([systemd unit file directory])
3308 AC_ARG_WITH([systemdsystemunitdir],
3309 [AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
3310 [Directory for systemd service files])],
3311 [], [with_systemdsystemunitdir=auto])
3312 AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"],
3313 [def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
3314 AS_IF([test "x$def_systemdsystemunitdir" = "x"],
3315 [AS_IF([test "x$with_systemdsystemunitdir" = "xyes"],
3316 [AC_MSG_ERROR([systemd support requested but pkg-config unable to query systemd package])])
3317 with_systemdsystemunitdir=no],
3318 [with_systemdsystemunitdir="$def_systemdsystemunitdir"])])
3319 AS_IF([test "x$with_systemdsystemunitdir" != "xno"],
3320 [AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])])
3321 AC_MSG_RESULT([$with_systemdsystemunitdir])
3323 AC_MSG_CHECKING([bash-completion directory])
3324 AC_ARG_WITH([bash-completion-dir],
3325 AS_HELP_STRING([--with-bash-completion-dir[=PATH]],
3326 [Install the bash auto-completion script in this directory.]),
3328 [with_bash_completion_dir=yes])
3329 AS_IF([test "x$with_bash_completion_dir" = "xyes"], [
3330 BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"
3331 AS_IF([test "x$BASH_COMPLETION_DIR" = "x"], [
3332 [BASH_COMPLETION_DIR="/usr/share/bash-completion/completions"]
3335 BASH_COMPLETION_DIR="$with_bash_completion_dir"
3337 AC_SUBST([BASH_COMPLETION_DIR])
3338 AC_MSG_RESULT([$BASH_COMPLETION_DIR])
3344 # AM_CONDITIONALS for lustre
3346 AC_DEFUN([LC_CONDITIONALS], [
3347 AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests)
3348 AM_CONDITIONAL(CLIENT, test x$enable_client = xyes)
3349 AM_CONDITIONAL(SERVER, test x$enable_server = xyes)
3350 AM_CONDITIONAL(SPLIT, test x$enable_split = xyes)
3351 AM_CONDITIONAL(EXT2FS_DEVEL, test x$ac_cv_header_ext2fs_ext2fs_h = xyes)
3352 AM_CONDITIONAL(GSS, test x$enable_gss = xyes)
3353 AM_CONDITIONAL(GSS_KEYRING, test x$enable_gss_keyring = xyes)
3354 AM_CONDITIONAL(GSS_PIPEFS, test x$enable_gss_pipefs = xyes)
3355 AM_CONDITIONAL(GSS_SSK, test x$enable_ssk = xyes)
3356 AM_CONDITIONAL(LIBPTHREAD, test x$enable_libpthread = xyes)
3357 AM_CONDITIONAL(HAVE_SYSTEMD, test "x$with_systemdsystemunitdir" != "xno")
3358 AM_CONDITIONAL(ENABLE_BASH_COMPLETION, test "x$with_bash_completion_dir" != "xno")
3359 AM_CONDITIONAL(XATTR_HANDLER, test "x$lb_cv_compile_xattr_handler_flags" = xyes)
3360 AM_CONDITIONAL(SELINUX, test "$SELINUX" = "-lselinux")
3361 AM_CONDITIONAL(GETSEPOL, test x$enable_getsepol = xyes)
3362 AM_CONDITIONAL(LLCRYPT, test x$enable_llcrypt = xyes)
3363 AM_CONDITIONAL(LIBAIO, test x$enable_libaio = xyes)
3364 ]) # LC_CONDITIONALS
3369 # files that should be generated with AC_OUTPUT
3371 AC_DEFUN([LC_CONFIG_FILES],
3375 lustre/autoconf/Makefile
3376 lustre/conf/Makefile
3377 lustre/conf/resource/Makefile
3378 lustre/contrib/Makefile
3380 lustre/include/Makefile
3381 lustre/include/lustre/Makefile
3382 lustre/include/uapi/linux/lustre/Makefile
3383 lustre/kernel_patches/targets/5.14-rhel9.0.target
3384 lustre/kernel_patches/targets/4.18-rhel8.7.target
3385 lustre/kernel_patches/targets/4.18-rhel8.6.target
3386 lustre/kernel_patches/targets/4.18-rhel8.5.target
3387 lustre/kernel_patches/targets/4.18-rhel8.4.target
3388 lustre/kernel_patches/targets/4.18-rhel8.3.target
3389 lustre/kernel_patches/targets/4.18-rhel8.2.target
3390 lustre/kernel_patches/targets/4.18-rhel8.1.target
3391 lustre/kernel_patches/targets/4.18-rhel8.target
3392 lustre/kernel_patches/targets/3.10-rhel7.9.target
3393 lustre/kernel_patches/targets/3.10-rhel7.8.target
3394 lustre/kernel_patches/targets/3.10-rhel7.7.target
3395 lustre/kernel_patches/targets/3.10-rhel7.6.target
3396 lustre/kernel_patches/targets/3.10-rhel7.5.target
3397 lustre/kernel_patches/targets/4.14-rhel7.5.target
3398 lustre/kernel_patches/targets/4.14-rhel7.6.target
3399 lustre/kernel_patches/targets/4.12-sles12sp4.target
3400 lustre/kernel_patches/targets/4.12-sles12sp5.target
3401 lustre/kernel_patches/targets/4.12-sles15sp1.target
3402 lustre/kernel_patches/targets/5.3-sles15sp2.target
3403 lustre/kernel_patches/targets/5.3-sles15sp3.target
3404 lustre/kernel_patches/targets/5.14-sles15sp4.target
3405 lustre/kernel_patches/targets/3.x-fc18.target
3406 lustre/ldlm/Makefile
3407 lustre/ldlm/autoMakefile
3408 lustre/ec/autoMakefile
3411 lustre/fid/autoMakefile
3412 lustre/llite/Makefile
3413 lustre/llite/autoMakefile
3415 lustre/lov/autoMakefile
3417 lustre/mdc/autoMakefile
3419 lustre/lmv/autoMakefile
3420 lustre/lfsck/Makefile
3421 lustre/lfsck/autoMakefile
3423 lustre/mdt/autoMakefile
3425 lustre/mdd/autoMakefile
3427 lustre/fld/autoMakefile
3428 lustre/obdclass/Makefile
3429 lustre/obdclass/autoMakefile
3430 lustre/obdecho/Makefile
3431 lustre/obdecho/autoMakefile
3433 lustre/ofd/autoMakefile
3435 lustre/osc/autoMakefile
3437 lustre/ost/autoMakefile
3438 lustre/osd-ldiskfs/Makefile
3439 lustre/osd-ldiskfs/autoMakefile
3440 lustre/osd-zfs/Makefile
3441 lustre/osd-zfs/autoMakefile
3443 lustre/mgc/autoMakefile
3445 lustre/mgs/autoMakefile
3446 lustre/target/Makefile
3447 lustre/target/autoMakefile
3448 lustre/ptlrpc/Makefile
3449 lustre/ptlrpc/autoMakefile
3450 lustre/ptlrpc/gss/Makefile
3451 lustre/ptlrpc/gss/autoMakefile
3452 lustre/quota/Makefile
3453 lustre/quota/autoMakefile
3454 lustre/scripts/Makefile
3455 lustre/scripts/systemd/Makefile
3456 lustre/tests/Makefile
3457 lustre/tests/mpi/Makefile
3458 lustre/tests/iabf/Makefile
3459 lustre/tests/lutf/Makefile
3460 lustre/tests/lutf/src/Makefile
3461 lustre/tests/kernel/Makefile
3462 lustre/tests/kernel/autoMakefile
3463 lustre/utils/Makefile
3464 lustre/utils/gss/Makefile
3466 lustre/osp/autoMakefile
3468 lustre/lod/autoMakefile
3470 ]) # LC_CONFIG_FILES