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
61 # Ensure the stack size is at least 8k in Lustre server (all kernels)
63 AC_DEFUN([LC_STACK_SIZE], [
64 LB_CHECK_COMPILE([if stack size is at least 8k],
66 #include <linux/thread_info.h>
68 #if THREAD_SIZE < 8192
69 #error "stack size < 8192"
71 ], [], [AC_MSG_ERROR([
73 Lustre requires that Linux is configured with at least a 8KB stack.
80 # Allow the user to set the MDS thread upper limit
82 AC_DEFUN([LC_MDS_MAX_THREADS], [
83 AC_MSG_CHECKING([for maximum number of MDS threads])
84 AC_ARG_WITH([mds_max_threads],
85 AC_HELP_STRING([--with-mds-max-threads=count],
86 [maximum threads available on the MDS: (default=512)]),
87 [AC_DEFINE_UNQUOTED(MDS_MAX_THREADS, $with_mds_max_threads,
88 [maximum number of MDS threads])])
89 AC_MSG_RESULT([$with_mds_max_threads])
90 ]) # LC_MDS_MAX_THREADS
95 # the pinger is temporary, until we have the recovery node in place
97 AC_DEFUN([LC_CONFIG_PINGER], [
98 AC_MSG_CHECKING([whether to enable Lustre pinger support])
99 AC_ARG_ENABLE([pinger],
100 AC_HELP_STRING([--disable-pinger],
101 [disable recovery pinger support]),
102 [], [enable_pinger="yes"])
103 AC_MSG_RESULT([$enable_pinger])
104 AS_IF([test "x$enable_pinger" != xno],
105 [AC_DEFINE(CONFIG_LUSTRE_PINGER, 1,[Use the Pinger])])
106 ]) # LC_CONFIG_PINGER
111 # do checksum of bulk data between client and OST
113 AC_DEFUN([LC_CONFIG_CHECKSUM], [
114 AC_MSG_CHECKING([whether to enable data checksum support])
115 AC_ARG_ENABLE([checksum],
116 AC_HELP_STRING([--disable-checksum],
117 [disable data checksum support]),
118 [], [enable_checksum="yes"])
119 AC_MSG_RESULT([$enable_checksum])
120 AS_IF([test "x$enable_checksum" != xno],
121 [AC_DEFINE(ENABLE_CHECKSUM, 1, [do data checksums])])
122 ]) # LC_CONFIG_CHECKSUM
127 # enable distributed flock by default
129 AC_DEFUN([LC_CONFIG_FLOCK], [
130 AC_MSG_CHECKING([whether to enable flock by default])
131 AC_ARG_ENABLE([flock],
132 AC_HELP_STRING([--disable-flock],
133 [disable flock by default]),
134 [], [enable_flock="yes"])
135 AC_MSG_RESULT([$enable_flock])
136 AS_IF([test "x$enable_flock" != xno],
137 [AC_DEFINE(ENABLE_FLOCK, 1, [enable flock by default])])
141 # LC_CONFIG_HEALTH_CHECK_WRITE
143 # Turn off the actual write to the disk
145 AC_DEFUN([LC_CONFIG_HEALTH_CHECK_WRITE], [
146 AC_MSG_CHECKING([whether to enable a write with the health check])
147 AC_ARG_ENABLE([health_write],
148 AC_HELP_STRING([--enable-health_write],
149 [enable disk writes when doing health check]),
150 [], [enable_health_write="no"])
151 AC_MSG_RESULT([$enable_health_write])
152 AS_IF([test "x$enable_health_write" != xno],
153 [AC_DEFINE(USE_HEALTH_CHECK_WRITE, 1, [Write when Checking Health])])
154 ]) # LC_CONFIG_HEALTH_CHECK_WRITE
157 # LC_CONFIG_LRU_RESIZE
159 AC_DEFUN([LC_CONFIG_LRU_RESIZE], [
160 AC_MSG_CHECKING([whether to enable lru self-adjusting])
161 AC_ARG_ENABLE([lru_resize],
162 AC_HELP_STRING([--enable-lru-resize],
163 [enable lru resize support]),
164 [], [enable_lru_resize="yes"])
165 AC_MSG_RESULT([$enable_lru_resize])
166 AS_IF([test "x$enable_lru_resize" != xno],
167 [AC_DEFINE(HAVE_LRU_RESIZE_SUPPORT, 1, [Enable lru resize support])])
168 ]) # LC_CONFIG_LRU_RESIZE
173 # Quota support. The kernel must support CONFIG_QUOTA.
175 AC_DEFUN([LC_QUOTA_CONFIG], [
176 LB_CHECK_CONFIG_IM([QUOTA], [],
179 Lustre quota requires that CONFIG_QUOTA is enabled in your kernel.
186 # fhandle kernel support for open_by_handle_at() and name_to_handle_at()
187 # system calls. The kernel must support CONFIG_FHANDLE.
189 AC_DEFUN([LC_CONFIG_FHANDLE], [
190 LB_CHECK_CONFIG_IM([FHANDLE], [],
193 Lustre fid handling requires that CONFIG_FHANDLE is enabled in your kernel.
195 ]) # LC_CONFIG_FHANDLE
198 # LC_POSIX_ACL_CONFIG
202 AC_DEFUN([LC_POSIX_ACL_CONFIG], [
203 LB_CHECK_CONFIG_IM([FS_POSIX_ACL],
204 [AC_DEFINE(CONFIG_LUSTRE_FS_POSIX_ACL, 1, [Enable POSIX acl])
206 ]) # LC_POSIX_ACL_CONFIG
208 LB_CHECK_CONFIG_IM([CRYPTO_MD5], [],
209 [AC_MSG_WARN([kernel MD5 support is recommended by using GSS.])])
212 # LC_CONFIG_GSS_KEYRING
214 # default 'auto', tests for dependencies, if found, enables;
215 # only called if gss is enabled
217 AC_DEFUN([LC_CONFIG_GSS_KEYRING], [
218 AC_MSG_CHECKING([whether to enable gss keyring backend])
219 AC_ARG_ENABLE([gss_keyring],
220 [AC_HELP_STRING([--disable-gss-keyring],
221 [disable gss keyring backend])],
222 [], [enable_gss_keyring="auto"])
223 AC_MSG_RESULT([$enable_gss_keyring])
224 AS_IF([test "x$enable_gss_keyring" != xno], [
225 LB_CHECK_CONFIG_IM([KEYS], [], [
226 gss_keyring_conf_test="fail"
227 AC_MSG_WARN([GSS keyring backend requires that CONFIG_KEYS be enabled in your kernel.])])
229 AC_CHECK_LIB([keyutils], [keyctl_search], [], [
230 gss_keyring_conf_test="fail"
231 AC_MSG_WARN([GSS keyring backend requires libkeyutils])])
233 AS_IF([test "x$gss_keyring_conf_test" != xfail], [
234 AC_DEFINE([HAVE_GSS_KEYRING], [1],
235 [Define this if you enable gss keyring backend])
236 enable_gss_keyring="yes"
238 AS_IF([test "x$enable_gss_keyring" = xyes], [
239 AC_MSG_ERROR([Cannot enable gss_keyring. See above for details.])
243 ]) # LC_CONFIG_GSS_KEYRING
246 # LC_KEY_TYPE_INSTANTIATE_2ARGS
248 # rhel7 key_type->instantiate takes 2 args (struct key, struct key_preparsed_payload)
250 AC_DEFUN([LC_KEY_TYPE_INSTANTIATE_2ARGS], [
251 LB_CHECK_COMPILE([if 'key_type->instantiate' has two args],
252 key_type_instantiate_2args, [
253 #include <linux/key-type.h>
255 ((struct key_type *)0)->instantiate(0, NULL);
257 AC_DEFINE(HAVE_KEY_TYPE_INSTANTIATE_2ARGS, 1,
258 [key_type->instantiate has two args])
260 ]) # LC_KEY_TYPE_INSTANTIATE_2ARGS
265 AC_DEFUN([LC_CONFIG_SUNRPC], [
266 LB_CHECK_CONFIG_IM([SUNRPC], [], [
267 AS_IF([test "x$sunrpc_required" = xyes], [
270 kernel SUNRPC support is required by using GSS.
273 ]) # LC_CONFIG_SUNRPC
276 # LC_CONFIG_GSS (default 'auto' (tests for dependencies, if found, enables))
278 # Build gss and related tools of Lustre. Currently both kernel and user space
279 # parts are depend on linux platform.
281 AC_DEFUN([LC_CONFIG_GSS], [
282 AC_MSG_CHECKING([whether to enable gss support])
284 [AC_HELP_STRING([--enable-gss], [enable gss support])],
285 [], [enable_gss="auto"])
286 AC_MSG_RESULT([$enable_gss])
288 AS_IF([test "x$enable_gss" != xno], [
289 LC_CONFIG_GSS_KEYRING
290 LC_KEY_TYPE_INSTANTIATE_2ARGS
291 sunrpc_required=$enable_gss
295 LB_CHECK_CONFIG_IM([CRYPTO_MD5], [],
296 [AC_MSG_WARN([kernel MD5 support is recommended by using GSS.])])
297 LB_CHECK_CONFIG_IM([CRYPTO_SHA1], [],
298 [AC_MSG_WARN([kernel SHA1 support is recommended by using GSS.])])
299 LB_CHECK_CONFIG_IM([CRYPTO_SHA256], [],
300 [AC_MSG_WARN([kernel SHA256 support is recommended by using GSS.])])
301 LB_CHECK_CONFIG_IM([CRYPTO_SHA512], [],
302 [AC_MSG_WARN([kernel SHA512 support is recommended by using GSS.])])
304 require_krb5=$enable_gss
308 AS_IF([test -n "$KRBDIR"], [
309 gss_conf_test="success"
311 gss_conf_test="failure"
314 AS_IF([test "x$gss_conf_test" = xsuccess && test "x$enable_gss" != xno], [
315 AC_DEFINE([HAVE_GSS], [1], [Define this is if you enable gss])
318 enable_gss_keyring="no"
322 enable_ssk=$enable_gss
324 enable_gss_keyring="no"
330 # OpenSSL 1.0+ return int for HMAC functions but older SLES11 versions do not
331 AC_DEFUN([LC_OPENSSL_SSK], [
332 AC_MSG_CHECKING([whether OpenSSL has functions needed for SSK])
333 AS_IF([test "x$enable_ssk" != xno], [
334 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
335 #include <openssl/hmac.h>
336 #include <openssl/evp.h>
340 rc = HMAC_Init_ex(NULL, "test", 4, EVP_md_null(), NULL);
342 ])],[AC_DEFINE(HAVE_OPENSSL_SSK, 1,
343 [OpenSSL HMAC functions needed for SSK])],
346 AC_MSG_RESULT([$enable_ssk])
349 # LC_OPENSSL_GETSEPOL
351 # OpenSSL is needed for l_getsepol
352 AC_DEFUN([LC_OPENSSL_GETSEPOL], [
353 AC_MSG_CHECKING([whether openssl-devel is present])
354 AC_COMPILE_IFELSE([AC_LANG_SOURCE([
355 #include <openssl/evp.h>
358 EVP_MD_CTX *mdctx = EVP_MD_CTX_create();
361 AC_DEFINE(HAVE_OPENSSL_GETSEPOL, 1, [openssl-devel is present])
362 enable_getsepol="yes"
368 No openssk-devel headers found, unable to build l_getsepol and SELinux status checking
371 AC_MSG_RESULT([$enable_getsepol])
372 ]) # LC_OPENSSL_GETSEPOL
374 AC_DEFUN([LC_HAVE_PROJECT_QUOTA], [
375 LB_CHECK_COMPILE([if get_projid exists],
378 #include <linux/quota.h>
380 struct dquot_operations ops = { };
382 ops.get_projid(NULL, NULL);
384 AC_DEFINE(HAVE_PROJECT_QUOTA, 1,
385 [get_projid function exists])
387 ]) # LC_HAVE_PROJECT_QUOTA
390 # LC_INVALIDATE_RANGE
392 # 3.11 invalidatepage requires the length of the range to invalidate
394 AC_DEFUN([LC_INVALIDATE_RANGE], [
395 LB_CHECK_COMPILE([if 'address_space_operations.invalidatepage' requires 3 arguments],
396 address_space_ops_invalidatepage_3args, [
397 #include <linux/fs.h>
399 struct address_space_operations a_ops;
400 a_ops.invalidatepage(NULL, 0, 0);
402 AC_DEFINE(HAVE_INVALIDATE_RANGE, 1,
403 [address_space_operations.invalidatepage needs 3 arguments])
405 ]) # LC_INVALIDATE_RANGE
408 # LC_HAVE_DIR_CONTEXT
410 # 3.11 readdir now takes the new struct dir_context
412 AC_DEFUN([LC_HAVE_DIR_CONTEXT], [
413 LB_CHECK_COMPILE([if 'dir_context' exist],
415 #include <linux/fs.h>
417 #ifdef FMODE_KABI_ITERATE
418 #error "back to use readdir in kabi_extand mode"
420 struct dir_context ctx;
425 AC_DEFINE(HAVE_DIR_CONTEXT, 1,
428 ]) # LC_HAVE_DIR_CONTEXT
433 # 3.11 need to access d_count to get dentry reference count
435 AC_DEFUN([LC_HAVE_DCOUNT], [
436 LB_CHECK_COMPILE([if 'd_count' exists],
438 #include <linux/dcache.h>
440 struct dentry de = { };
443 count = d_count(&de);
445 AC_DEFINE(HAVE_D_COUNT, 1,
451 # LC_PID_NS_FOR_CHILDREN
453 # 3.11 replaces pid_ns by pid_ns_for_children in struct nsproxy
455 AC_DEFUN([LC_PID_NS_FOR_CHILDREN], [
456 LB_CHECK_COMPILE([if 'struct nsproxy' has 'pid_ns_for_children'],
457 pid_ns_for_children, [
458 #include <linux/nsproxy.h>
461 ns.pid_ns_for_children = NULL;
463 AC_DEFINE(HAVE_PID_NS_FOR_CHILDREN, 1,
464 ['struct nsproxy' has 'pid_ns_for_children'])
466 ]) # LC_PID_NS_FOR_CHILDREN
469 # LC_OLDSIZE_TRUNCATE_PAGECACHE
471 # 3.12 truncate_pagecache without oldsize parameter
473 AC_DEFUN([LC_OLDSIZE_TRUNCATE_PAGECACHE], [
474 LB_CHECK_COMPILE([if 'truncate_pagecache' with 'old_size' parameter],
475 truncate_pagecache_old_size, [
476 #include <linux/mm.h>
478 truncate_pagecache(NULL, 0, 0);
480 AC_DEFINE(HAVE_OLDSIZE_TRUNCATE_PAGECACHE, 1,
483 ]) # LC_OLDSIZE_TRUNCATE_PAGECACHE
488 # For some reason SLES11SP4 is missing the PTR_ERR_OR_ZERO macro
489 # It was added to linux kernel 3.12
491 AC_DEFUN([LC_PTR_ERR_OR_ZERO_MISSING], [
492 LB_CHECK_COMPILE([if 'PTR_ERR_OR_ZERO' is missing],
494 #include <linux/err.h>
496 if (PTR_ERR_OR_ZERO(NULL)) return 0;
498 AC_DEFINE(HAVE_PTR_ERR_OR_ZERO, 1,
499 ['PTR_ERR_OR_ZERO' exist])
501 ]) # LC_PTR_ERR_OR_ZERO_MISSING
504 # LC_HAVE_DENTRY_D_U_D_ALIAS
506 # 3.11 kernel moved d_alias to the union d_u in struct dentry
508 # Some distros move d_alias to d_u but it is still a struct list
510 AC_DEFUN([LC_HAVE_DENTRY_D_U_D_ALIAS], [
511 AS_IF([test "x$lb_cv_compile_i_dentry_d_alias_list" = xyes], [
512 LB_CHECK_COMPILE([if list 'dentry.d_u.d_alias' exist],
514 #include <linux/list.h>
515 #include <linux/dcache.h>
518 INIT_LIST_HEAD(&de.d_u.d_alias);
520 AC_DEFINE(HAVE_DENTRY_D_U_D_ALIAS, 1,
521 [list dentry.d_u.d_alias exist])
524 LB_CHECK_COMPILE([if hlist 'dentry.d_u.d_alias' exist],
526 #include <linux/list.h>
527 #include <linux/dcache.h>
530 INIT_HLIST_NODE(&de.d_u.d_alias);
532 AC_DEFINE(HAVE_DENTRY_D_U_D_ALIAS, 1,
533 [hlist dentry.d_u.d_alias exist])
536 ]) # LC_HAVE_DENTRY_D_U_D_ALIAS
539 # LC_HAVE_DENTRY_D_CHILD
541 # 3.11 kernel d_child has been moved out of the union d_u
544 AC_DEFUN([LC_HAVE_DENTRY_D_CHILD], [
545 LB_CHECK_COMPILE([if 'dentry.d_child' exist],
547 #include <linux/list.h>
548 #include <linux/dcache.h>
551 INIT_LIST_HEAD(&de.d_child);
553 AC_DEFINE(HAVE_DENTRY_D_CHILD, 1,
554 [dentry.d_child exist])
556 ]) # LC_HAVE_DENTRY_D_CHILD
561 # 3.12 ki_left removed from struct kiocb
563 AC_DEFUN([LC_KIOCB_KI_LEFT], [
564 LB_CHECK_COMPILE([if 'struct kiocb' with 'ki_left' member],
566 #include <linux/aio.h>
568 ((struct kiocb*)0)->ki_left = 0;
570 AC_DEFINE(HAVE_KIOCB_KI_LEFT, 1,
573 ]) # LC_KIOCB_KI_LEFT
576 # LC_VFS_RENAME_5ARGS
578 # 3.13 has vfs_rename with 5 args
580 AC_DEFUN([LC_VFS_RENAME_5ARGS], [
581 LB_CHECK_COMPILE([if Linux kernel has 'vfs_rename' with 5 args],
583 #include <linux/fs.h>
585 vfs_rename(NULL, NULL, NULL, NULL, NULL);
587 AC_DEFINE(HAVE_VFS_RENAME_5ARGS, 1,
588 [kernel has vfs_rename with 5 args])
590 ]) # LC_VFS_RENAME_5ARGS
593 # LC_VFS_UNLINK_3ARGS
595 # 3.13 has vfs_unlink with 3 args
597 AC_DEFUN([LC_VFS_UNLINK_3ARGS], [
598 LB_CHECK_COMPILE([if Linux kernel has 'vfs_unlink' with 3 args],
600 #include <linux/fs.h>
602 vfs_unlink(NULL, NULL, NULL);
604 AC_DEFINE(HAVE_VFS_UNLINK_3ARGS, 1,
605 [kernel has vfs_unlink with 3 args])
607 ]) # LC_VFS_UNLINK_3ARGS
609 # LC_HAVE_D_IS_POSITIVE
611 # Kernel version 3.13 b18825a7c8e37a7cf6abb97a12a6ad71af160de7
612 # d_is_positive is added
614 AC_DEFUN([LC_HAVE_D_IS_POSITIVE], [
615 LB_CHECK_COMPILE([if 'd_is_positive' exist],
617 #include <linux/dcache.h>
621 AC_DEFINE(HAVE_D_IS_POSITIVE, 1,
622 ['d_is_positive' is available])
624 ]) # LC_HAVE_D_IS_POSITIVE
629 # 3.14 move some of its data in struct bio into the new
632 AC_DEFUN([LC_HAVE_BVEC_ITER], [
633 LB_CHECK_COMPILE([if Linux kernel has struct bvec_iter],
635 #include <linux/bio.h>
637 struct bvec_iter iter;
639 iter.bi_bvec_done = 0;
641 AC_DEFINE(HAVE_BVEC_ITER, 1,
642 [kernel has struct bvec_iter])
644 ]) # LC_HAVE_BVEC_ITER
649 # 3.14 adds set_acl method to inode_operations
650 # see kernel commit 893d46e443346370cd4ea81d9d35f72952c62a37
652 AC_DEFUN([LC_IOP_SET_ACL], [
653 LB_CHECK_COMPILE([if 'inode_operations' has '.set_acl' member function],
655 #include <linux/fs.h>
657 struct inode_operations iop;
660 AC_DEFINE(HAVE_IOP_SET_ACL, 1,
661 [inode_operations has .set_acl member function])
666 # LC_HAVE_TRUNCATE_IPAGE_FINAL
668 # 3.14 bring truncate_inode_pages_final for evict_inode
670 AC_DEFUN([LC_HAVE_TRUNCATE_IPAGES_FINAL], [
671 LB_CHECK_COMPILE([if Linux kernel has truncate_inode_pages_final],
672 truncate_ipages_final, [
673 #include <linux/mm.h>
675 truncate_inode_pages_final(NULL);
677 AC_DEFINE(HAVE_TRUNCATE_INODE_PAGES_FINAL, 1,
678 [kernel has truncate_inode_pages_final])
680 ]) # LC_HAVE_TRUNCATE_IPAGES_FINAL
683 # LC_IOPS_RENAME_WITH_FLAGS
685 # 3.14 has inode_operations->rename with 5 args
686 # commit 520c8b16505236fc82daa352e6c5e73cd9870cff
688 AC_DEFUN([LC_IOPS_RENAME_WITH_FLAGS], [
689 LB_CHECK_COMPILE([if 'inode_operations->rename' taken flags as argument],
690 iops_rename_with_flags, [
691 #include <linux/fs.h>
693 struct inode *i1 = NULL, *i2 = NULL;
694 struct dentry *d1 = NULL, *d2 = NULL;
696 rc = ((struct inode_operations *)0)->rename(i1, d1, i2, d2, 0);
698 AC_DEFINE(HAVE_IOPS_RENAME_WITH_FLAGS, 1,
699 [inode_operations->rename need flags as argument])
701 ]) # LC_IOPS_RENAME_WITH_FLAGS
704 # LC_VFS_RENAME_6ARGS
706 # 3.15 has vfs_rename with 6 args
708 AC_DEFUN([LC_VFS_RENAME_6ARGS], [
709 LB_CHECK_COMPILE([if Linux kernel has 'vfs_rename' with 6 args],
711 #include <linux/fs.h>
713 vfs_rename(NULL, NULL, NULL, NULL, NULL, NULL);
715 AC_DEFINE(HAVE_VFS_RENAME_6ARGS, 1,
716 [kernel has vfs_rename with 6 args])
718 ]) # LC_VFS_RENAME_6ARGS
721 # LC_DIRECTIO_USE_ITER
723 # 3.16 kernel changes direct IO to use iov_iter
725 AC_DEFUN([LC_DIRECTIO_USE_ITER], [
726 LB_CHECK_COMPILE([if direct IO uses iov_iter],
728 #include <linux/fs.h>
730 struct address_space_operations ops = { };
731 struct iov_iter *iter = NULL;
734 ops.direct_IO(0, NULL, iter, offset);
736 AC_DEFINE(HAVE_DIRECTIO_ITER, 1,
737 [direct IO uses iov_iter])
739 ]) # LC_DIRECTIO_USE_ITER
742 # LC_HAVE_IOV_ITER_INIT_DIRECTION
745 # 3.16 linux commit 71d8e532b1549a478e6a6a8a44f309d050294d00
746 # changed iov_iter_init api to start accepting a tag
747 # that defines if its a read or write operation
749 AC_DEFUN([LC_HAVE_IOV_ITER_INIT_DIRECTION], [
750 tmp_flags="$EXTRA_KCFLAGS"
751 EXTRA_KCFLAGS="-Werror"
752 LB_CHECK_COMPILE([if 'iov_iter_init' takes a tag],
754 #include <linux/uio.h>
755 #include <linux/fs.h>
757 const struct iovec *iov = NULL;
759 iov_iter_init(NULL, READ, iov, 1, 0);
761 AC_DEFINE(HAVE_IOV_ITER_INIT_DIRECTION, 1,
762 [iov_iter_init handles directional tag])
764 EXTRA_KCFLAGS="$tmp_flags"
765 ]) # LC_HAVE_IOV_ITER_INIT_DIRECTION
768 # LC_HAVE_IOV_ITER_TRUNCATE
771 # 3.16 introduces a new API iov_iter_truncate()
773 AC_DEFUN([LC_HAVE_IOV_ITER_TRUNCATE], [
774 tmp_flags="$EXTRA_KCFLAGS"
775 EXTRA_KCFLAGS="-Werror"
776 LB_CHECK_COMPILE([if 'iov_iter_truncate' exists ],
778 #include <linux/uio.h>
779 #include <linux/fs.h>
781 struct iov_iter *i = NULL;
783 iov_iter_truncate(i, 0);
785 AC_DEFINE(HAVE_IOV_ITER_TRUNCATE, 1, [iov_iter_truncate exists])
787 EXTRA_KCFLAGS="$tmp_flags"
788 ]) # LC_HAVE_IOV_ITER_TRUNCATE
791 # LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER
793 # 3.16 introduces [read|write]_iter to struct file_operations
795 AC_DEFUN([LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER], [
796 LB_CHECK_COMPILE([if 'file_operations.[read|write]_iter' exist],
797 file_function_iter, [
798 #include <linux/fs.h>
800 ((struct file_operations *)NULL)->read_iter(NULL, NULL);
801 ((struct file_operations *)NULL)->write_iter(NULL, NULL);
803 AC_DEFINE(HAVE_FILE_OPERATIONS_READ_WRITE_ITER, 1,
804 [file_operations.[read|write]_iter functions exist])
806 ]) # LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER
809 # LC_HAVE_INTERVAL_BLK_INTEGRITY
811 # 3.17 replace sector_size with interval in struct blk_integrity
813 AC_DEFUN([LC_HAVE_INTERVAL_BLK_INTEGRITY], [
814 LB_CHECK_COMPILE([if 'blk_integrity.interval' exist],
815 interval_blk_integrity, [
816 #include <linux/blkdev.h>
818 ((struct blk_integrity *)0)->interval = 0;
820 AC_DEFINE(HAVE_INTERVAL_BLK_INTEGRITY, 1,
821 [blk_integrity.interval exist])
823 ]) # LC_HAVE_INTERVAL_BLK_INTEGRITY
828 # 3.17 replaces key_type::match with match_preparse
829 # and has new struct key_match_data
831 AC_DEFUN([LC_KEY_MATCH_DATA], [
832 LB_CHECK_COMPILE([if struct key_match field exist],
834 #include <linux/key-type.h>
836 struct key_match_data data;
838 data.raw_data = NULL;
840 AC_DEFINE(HAVE_KEY_MATCH_DATA, 1,
841 [struct key_match_data exist])
843 ]) # LC_KEY_MATCH_DATA
846 # LC_NFS_FILLDIR_USE_CTX
848 # 3.18 kernel moved from void cookie to struct dir_context
850 AC_DEFUN([LC_NFS_FILLDIR_USE_CTX], [
851 tmp_flags="$EXTRA_KCFLAGS"
852 EXTRA_KCFLAGS="-Werror"
853 LB_CHECK_COMPILE([if filldir_t uses struct dir_context],
855 #include <linux/fs.h>
857 int filldir(struct dir_context *ctx, const char* name,
858 int i, loff_t off, u64 tmp, unsigned temp)
863 struct dir_context ctx = {
867 ctx.actor(NULL, "test", 0, (loff_t) 0, 0, 0);
869 AC_DEFINE(HAVE_FILLDIR_USE_CTX, 1,
870 [filldir_t needs struct dir_context as argument])
872 EXTRA_KCFLAGS="$tmp_flags"
873 ]) # LC_NFS_FILLDIR_USE_CTX
876 # LC_PERCPU_COUNTER_INIT
878 # 3.18 For kernels 3.18 and after percpu_counter_init starts
879 # to pass a GFP_* memory allocation flag for internal
880 # memory allocation purposes.
882 AC_DEFUN([LC_PERCPU_COUNTER_INIT], [
883 LB_CHECK_COMPILE([if percpu_counter_init uses GFP_* flag as argument],
884 percpu_counter_init, [
885 #include <linux/percpu_counter.h>
887 percpu_counter_init(NULL, 0, GFP_KERNEL);
889 AC_DEFINE(HAVE_PERCPU_COUNTER_INIT_GFP_FLAG, 1,
890 [percpu_counter_init uses GFP_* flag])
892 ]) # LC_PERCPU_COUNTER_INIT
895 # LC_KIOCB_HAS_NBYTES
897 # 3.19 kernel removed ki_nbytes from struct kiocb
899 AC_DEFUN([LC_KIOCB_HAS_NBYTES], [
900 LB_CHECK_COMPILE([if struct kiocb has ki_nbytes field],
902 #include <linux/fs.h>
904 struct kiocb iocb = { };
908 AC_DEFINE(HAVE_KI_NBYTES, 1, [ki_nbytes field exist])
910 ]) # LC_KIOCB_HAS_NBYTES
913 # LC_HAVE_DQUOT_QC_DQBLK
915 # 3.19 has quotactl_ops->[sg]et_dqblk that take struct kqid and qc_dqblk
916 # Added in commit 14bf61ffe
918 AC_DEFUN([LC_HAVE_DQUOT_QC_DQBLK], [
919 tmp_flags="$EXTRA_KCFLAGS"
920 EXTRA_KCFLAGS="-Werror"
921 LB_CHECK_COMPILE([if 'quotactl_ops.set_dqblk' takes struct qc_dqblk],
923 #include <linux/fs.h>
924 #include <linux/quota.h>
926 ((struct quotactl_ops *)0)->set_dqblk(NULL, *((struct kqid*)0), (struct qc_dqblk*)0);
928 AC_DEFINE(HAVE_DQUOT_QC_DQBLK, 1,
929 [quotactl_ops.set_dqblk takes struct qc_dqblk])
930 AC_DEFINE(HAVE_DQUOT_KQID, 1,
931 [quotactl_ops.set_dqblk takes struct kqid])
933 EXTRA_KCFLAGS="$tmp_flags"
934 ]) # LC_HAVE_DQUOT_QC_DQBLK
937 # LC_HAVE_AIO_COMPLETE
939 # 3.19 kernel makes aio_complete() static
941 AC_DEFUN([LC_HAVE_AIO_COMPLETE], [
942 LB_CHECK_COMPILE([if kernel has exported aio_complete() ],
944 #include <linux/aio.h>
946 aio_complete(NULL, 0, 0);
948 AC_DEFINE(HAVE_AIO_COMPLETE, 1, [aio_complete defined])
950 ]) # LC_HAVE_AIO_COMPLETE
953 # LC_BACKING_DEV_INFO_REMOVAL
955 # 3.20 kernel removed backing_dev_info from address_space
957 AC_DEFUN([LC_BACKING_DEV_INFO_REMOVAL], [
958 LB_CHECK_COMPILE([if struct address_space has backing_dev_info],
960 #include <linux/fs.h>
962 struct address_space mapping;
964 mapping.backing_dev_info = NULL;
966 AC_DEFINE(HAVE_BACKING_DEV_INFO, 1, [backing_dev_info exist])
968 ]) # LC_BACKING_DEV_INFO_REMOVAL
971 # LC_HAVE_BDI_CAP_MAP_COPY
973 # 3.20 removed mmap handling for backing devices since
974 # it breaks on non-MMU systems. See kernel commit
975 # b4caecd48005fbed3949dde6c1cb233142fd69e9
977 AC_DEFUN([LC_HAVE_BDI_CAP_MAP_COPY], [
978 LB_CHECK_COMPILE([if have 'BDI_CAP_MAP_COPY'],
980 #include <linux/backing-dev.h>
982 struct backing_dev_info info;
984 info.capabilities = BDI_CAP_MAP_COPY;
986 AC_DEFINE(HAVE_BDI_CAP_MAP_COPY, 1,
987 [BDI_CAP_MAP_COPY exist])
989 ]) # LC_HAVE_BDI_CAP_MAP_COPY
994 # 4.1 kernel has iov_iter_rw
996 AC_DEFUN([LC_IOV_ITER_RW], [
997 LB_CHECK_COMPILE([if iov_iter_rw exist],
999 #include <linux/fs.h>
1000 #include <linux/uio.h>
1002 struct iov_iter *iter = NULL;
1006 AC_DEFINE(HAVE_IOV_ITER_RW, 1,
1007 [iov_iter_rw exist])
1012 # LC_HAVE_SYNC_READ_WRITE
1014 # 4.1 new_sync_[read|write] no longer exported
1016 AC_DEFUN([LC_HAVE_SYNC_READ_WRITE], [
1017 LB_CHECK_EXPORT([new_sync_read], [fs/read_write.c],
1018 [AC_DEFINE(HAVE_SYNC_READ_WRITE, 1,
1019 [new_sync_[read|write] is exported by the kernel])])
1020 ]) # LC_HAVE_SYNC_READ_WRITE
1025 # 4.1 redefined bi_cnt as __bi_cnt in commit dac56212e8127dbc0
1027 AC_DEFUN([LC_HAVE___BI_CNT], [
1028 LB_CHECK_COMPILE([if Linux kernel has __bi_cnt in struct bio],
1030 #include <asm/atomic.h>
1031 #include <linux/bio.h>
1032 #include <linux/blk_types.h>
1034 struct bio bio = { };
1036 cnt = atomic_read(&bio.__bi_cnt);
1038 AC_DEFINE(HAVE___BI_CNT, 1,
1039 [struct bio has __bi_cnt])
1041 ]) # LC_HAVE___BI_CNT
1044 # LC_SYMLINK_OPS_USE_NAMEIDATA
1046 # For the 4.2+ kernels the file system internal symlink api no
1047 # longer uses struct nameidata as a argument
1049 AC_DEFUN([LC_SYMLINK_OPS_USE_NAMEIDATA], [
1050 LB_CHECK_COMPILE([if symlink inode operations have struct nameidata argument],
1051 symlink_use_nameidata, [
1052 #include <linux/namei.h>
1053 #include <linux/fs.h>
1055 struct nameidata *nd = NULL;
1057 ((struct inode_operations *)0)->follow_link(NULL, nd);
1058 ((struct inode_operations *)0)->put_link(NULL, nd, NULL);
1060 AC_DEFINE(HAVE_SYMLINK_OPS_USE_NAMEIDATA, 1,
1061 [symlink inode operations need struct nameidata argument])
1063 ]) # LC_SYMLINK_OPS_USE_NAMEIDATA
1066 # LC_BIO_ENDIO_USES_ONE_ARG
1068 # 4.2 kernel bio_endio now only takes one argument
1070 AC_DEFUN([LC_BIO_ENDIO_USES_ONE_ARG], [
1071 LB_CHECK_COMPILE([if 'bio_endio' with one argument exist],
1073 #include <linux/bio.h>
1077 AC_DEFINE(HAVE_BIO_ENDIO_USES_ONE_ARG, 1,
1078 [bio_endio takes only one argument])
1080 ]) # LC_BIO_ENDIO_USES_ONE_ARG
1083 # LC_ACCOUNT_PAGE_DIRTIED_3ARGS
1085 # 4.2 [to 4.5] kernel page dirtied takes 3 arguments
1087 AC_DEFUN([LC_ACCOUNT_PAGE_DIRTIED_3ARGS], [
1088 LB_CHECK_COMPILE([if 'account_page_dirtied' with 3 args exists],
1089 account_page_dirtied, [
1090 #include <linux/mm.h>
1092 account_page_dirtied(NULL, NULL, NULL);
1094 AC_DEFINE(HAVE_ACCOUNT_PAGE_DIRTIED_3ARGS, 1,
1095 [account_page_dirtied takes three arguments])
1097 ]) # LC_ACCOUNT_PAGE_DIRTIED_3ARGS
1100 # LC_HAVE_INTERVAL_EXP_BLK_INTEGRITY
1102 # 4.3 replace interval with interval_exp in 'struct blk_integrity'
1103 # 'struct blk_integrity_profile' is also added in this version,
1104 # thus use this to determine whether 'struct blk_integrity' has profile
1106 AC_DEFUN([LC_HAVE_INTERVAL_EXP_BLK_INTEGRITY], [
1107 LB_CHECK_COMPILE([if 'blk_integrity.interval_exp' exist],
1108 blk_integrity_interval_exp, [
1109 #include <linux/blkdev.h>
1111 ((struct blk_integrity *)0)->interval_exp = 0;
1113 AC_DEFINE(HAVE_INTERVAL_EXP_BLK_INTEGRITY, 1,
1114 [blk_integrity.interval_exp exist])
1116 ]) # LC_HAVE_INTERVAL_EXP_BLK_INTEGRITY
1119 # LC_HAVE_CACHE_HEAD_HLIST
1121 # 4.3 kernel swiched to hlist for cache_head
1123 AC_DEFUN([LC_HAVE_CACHE_HEAD_HLIST], [
1124 LB_CHECK_COMPILE([if 'struct cache_head' has 'cache_list' field],
1125 cache_head_has_hlist, [
1126 #include <linux/sunrpc/cache.h>
1128 do {} while(sizeof(((struct cache_head *)0)->cache_list));
1130 AC_DEFINE(HAVE_CACHE_HEAD_HLIST, 1,
1131 [cache_head has hlist cache_list])
1133 ]) # LC_HAVE_CACHE_HEAD_HLIST
1136 # LC_HAVE_XATTR_HANDLER_SIMPLIFIED
1138 # Kernel version 4.3 commit e409de992e3ea3674393465f07cc71c948edd87a
1139 # simplified xattr_handler handling by passing in the handler pointer
1141 AC_DEFUN([LC_HAVE_XATTR_HANDLER_SIMPLIFIED], [
1142 tmp_flags="$EXTRA_KCFLAGS"
1143 EXTRA_KCFLAGS="-Werror"
1144 LB_CHECK_COMPILE([if 'struct xattr_handler' functions pass in handler pointer],
1145 xattr_handler_simplified, [
1146 #include <linux/xattr.h>
1148 struct xattr_handler handler;
1150 ((struct xattr_handler *)0)->get(&handler, NULL, NULL, NULL, 0);
1151 ((struct xattr_handler *)0)->set(&handler, NULL, NULL, NULL, 0, 0);
1153 AC_DEFINE(HAVE_XATTR_HANDLER_SIMPLIFIED, 1, [handler pointer is parameter])
1155 EXTRA_KCFLAGS="$tmp_flags"
1156 ]) # LC_HAVE_XATTR_HANDLER_SIMPLIFIED
1159 # LC_HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD
1161 # 4.3 replace interval with interval_exp in 'struct blk_integrity'.
1163 AC_DEFUN([LC_HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD], [
1164 LB_CHECK_COMPILE([if 'bio_integrity_payload.bip_iter' exist],
1165 bio_integrity_payload_bip_iter, [
1166 #include <linux/bio.h>
1168 ((struct bio_integrity_payload *)0)->bip_iter.bi_size = 0;
1170 AC_DEFINE(HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD, 1,
1171 [bio_integrity_payload.bip_iter exist])
1173 ]) # LC_HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD
1176 # LC_BIO_INTEGRITY_PREP_FN
1178 # Lustre kernel patch extents bio_integrity_prep to accept optional
1179 # generate/verify_fn as extra args.
1181 AC_DEFUN([LC_BIO_INTEGRITY_PREP_FN], [
1182 LB_CHECK_COMPILE([if 'bio_integrity_prep_fn' exists],
1183 bio_integrity_prep_fn, [
1184 #include <linux/bio.h>
1186 bio_integrity_prep_fn(NULL, NULL, NULL);
1188 AC_DEFINE(HAVE_BIO_INTEGRITY_PREP_FN, 1,
1189 [kernel has bio_integrity_prep_fn])
1190 AC_SUBST(PATCHED_INTEGRITY_INTF)
1192 AC_SUBST(PATCHED_INTEGRITY_INTF, [#])
1194 ]) # LC_BIO_INTEGRITY_PREP_FN
1199 # 4.4/4.8 redefined bi_rw as bi_opf (SLES12/kernel commit 4382e33ad37486)
1201 AC_DEFUN([LC_HAVE_BI_OPF], [
1202 LB_CHECK_COMPILE([if Linux kernel has bi_opf in struct bio],
1204 #include <linux/bio.h>
1210 AC_DEFINE(HAVE_BI_OPF, 1,
1211 [struct bio has bi_opf])
1216 # LC_HAVE_SUBMIT_BIO_2ARGS
1218 # 4.4 removed an argument from submit_bio
1220 AC_DEFUN([LC_HAVE_SUBMIT_BIO_2ARGS], [
1221 LB_CHECK_COMPILE([if submit_bio takes two arguments],
1222 have_submit_bio_2args, [
1223 #include <linux/bio.h>
1226 submit_bio(READ, &bio);
1228 AC_DEFINE(HAVE_SUBMIT_BIO_2ARGS, 1,
1229 [submit_bio takes two arguments])
1231 ]) # LC_HAVE_SUBMIT_BIO_2_ARGS
1234 # LC_HAVE_CLEAN_BDEV_ALIASES
1236 # 4.4/4.9 unmap_underlying_metadata was replaced by clean_bdev_aliases
1237 # (SLES12/kernel commit 29f3ad7d8380364c)
1239 AC_DEFUN([LC_HAVE_CLEAN_BDEV_ALIASES], [
1240 LB_CHECK_COMPILE([if kernel has clean_bdev_aliases],
1241 have_clean_bdev_aliases, [
1242 #include <linux/buffer_head.h>
1244 struct block_device bdev;
1245 clean_bdev_aliases(&bdev,1,1);
1247 AC_DEFINE(HAVE_CLEAN_BDEV_ALIASES, 1,
1248 [kernel has clean_bdev_aliases])
1250 ]) # LC_HAVE_CLEAN_BDEV_ALIASES
1253 # LC_HAVE_LOCKS_LOCK_FILE_WAIT
1255 # 4.4 kernel have moved locks API users to
1256 # locks_lock_inode_wait()
1258 AC_DEFUN([LC_HAVE_LOCKS_LOCK_FILE_WAIT], [
1259 LB_CHECK_COMPILE([if 'locks_lock_file_wait' exists],
1260 locks_lock_file_wait, [
1261 #include <linux/fs.h>
1263 locks_lock_file_wait(NULL, NULL);
1265 AC_DEFINE(HAVE_LOCKS_LOCK_FILE_WAIT, 1,
1266 [kernel has locks_lock_file_wait])
1268 ]) # LC_HAVE_LOCKS_LOCK_FILE_WAIT
1271 # LC_HAVE_KEY_PAYLOAD_DATA_ARRAY
1273 # 4.4 kernel merged type-specific data with the payload data for keys
1275 AC_DEFUN([LC_HAVE_KEY_PAYLOAD_DATA_ARRAY], [
1276 LB_CHECK_COMPILE([if 'struct key' has 'payload.data' as an array],
1277 key_payload_data_array, [
1278 #include <linux/key.h>
1280 struct key key = { };
1282 key.payload.data[0] = NULL;
1284 AC_DEFINE(HAVE_KEY_PAYLOAD_DATA_ARRAY, 1, [payload.data is an array])
1286 ]) #LC_HAVE_KEY_PAYLOAD_DATA_ARRAY
1289 # LC_HAVE_XATTR_HANDLER_NAME
1291 # Kernel version 4.4 commit 98e9cb5711c68223f0e4d5201b9a6add255ec550
1292 # add a name member to struct xattr_handler
1294 AC_DEFUN([LC_HAVE_XATTR_HANDLER_NAME], [
1295 tmp_flags="$EXTRA_KCFLAGS"
1296 EXTRA_KCFLAGS="-Werror"
1297 LB_CHECK_COMPILE([if 'struct xattr_handler' has a name member],
1298 xattr_handler_name, [
1299 #include <linux/xattr.h>
1301 ((struct xattr_handler *)NULL)->name = NULL;
1303 AC_DEFINE(HAVE_XATTR_HANDLER_NAME, 1, [xattr_handler has a name member])
1305 EXTRA_KCFLAGS="$tmp_flags"
1306 ]) # LC_HAVE_XATTR_HANDLER_NAME
1309 # LC_HAVE_FILE_DENTRY
1311 # 4.5 adds wrapper file_dentry
1313 AC_DEFUN([LC_HAVE_FILE_DENTRY], [
1314 LB_CHECK_COMPILE([if Linux kernel has 'file_dentry'],
1316 #include <linux/fs.h>
1320 AC_DEFINE(HAVE_FILE_DENTRY, 1,
1321 [kernel has file_dentry])
1323 ]) # LC_HAVE_FILE_DENTRY
1326 # LC_HAVE_INODE_LOCK
1328 # 4.5 introduced inode_lock
1330 AC_DEFUN([LC_HAVE_INODE_LOCK], [
1331 LB_CHECK_COMPILE([if 'inode_lock' is defined],
1333 #include <linux/fs.h>
1337 AC_DEFINE(HAVE_INODE_LOCK, 1,
1338 [inode_lock is defined])
1340 ]) # LC_HAVE_INODE_LOCK
1343 # LC_HAVE_IOP_GET_LINK
1345 # 4.5 vfs replaced iop->follow_link with
1348 AC_DEFUN([LC_HAVE_IOP_GET_LINK], [
1349 LB_CHECK_COMPILE([if 'iop' has 'get_link'],
1350 inode_ops_get_link, [
1351 #include <linux/fs.h>
1353 struct inode_operations iop;
1354 iop.get_link = NULL;
1356 AC_DEFINE(HAVE_IOP_GET_LINK, 1,
1357 [have iop get_link])
1359 ]) # LC_HAVE_IOP_GET_LINK
1362 # LC_HAVE_IN_COMPAT_SYSCALL
1364 # 4.6 renamed is_compat_task to in_compat_syscall
1366 AC_DEFUN([LC_HAVE_IN_COMPAT_SYSCALL], [
1367 LB_CHECK_COMPILE([if 'in_compat_syscall' is defined],
1368 in_compat_syscall, [
1369 #include <linux/compat.h>
1371 in_compat_syscall();
1373 AC_DEFINE(HAVE_IN_COMPAT_SYSCALL, 1,
1374 [have in_compat_syscall])
1376 ]) # LC_HAVE_IN_COMPAT_SYSCALL
1379 # LC_HAVE_XATTR_HANDLER_INODE_PARAM
1381 # Kernel version 4.6 commit b296821a7c42fa58baa17513b2b7b30ae66f3336
1382 # and commit 5930122683dff58f0846b0f0405b4bd598a3ba6a added inode parameter
1383 # to xattr_handler functions
1385 AC_DEFUN([LC_HAVE_XATTR_HANDLER_INODE_PARAM], [
1386 tmp_flags="$EXTRA_KCFLAGS"
1387 EXTRA_KCFLAGS="-Werror"
1388 LB_CHECK_COMPILE([if 'struct xattr_handler' functions have inode parameter],
1389 xattr_handler_inode_param, [
1390 #include <linux/xattr.h>
1392 const struct xattr_handler handler;
1394 ((struct xattr_handler *)0)->get(&handler, NULL, NULL, NULL, NULL, 0);
1395 ((struct xattr_handler *)0)->set(&handler, NULL, NULL, NULL, NULL, 0, 0);
1397 AC_DEFINE(HAVE_XATTR_HANDLER_INODE_PARAM, 1, [needs inode parameter])
1399 EXTRA_KCFLAGS="$tmp_flags"
1400 ]) # LC_HAVE_XATTR_HANDLER_INODE_PARAM
1405 # Kernel version 4.6 commit 85c7f81041d57cfe9dc97f4680d5586b54534a39
1406 # introduced parallel lookups in the VFS layer. The inline function
1407 # d_in_lookup was added to notify when the same item was being queried
1410 AC_DEFUN([LC_D_IN_LOOKUP], [
1411 tmp_flags="$EXTRA_KCFLAGS"
1412 EXTRA_KCFLAGS="-Werror"
1413 LB_CHECK_COMPILE([if 'd_in_lookup' is defined],
1415 #include <linux/dcache.h>
1419 AC_DEFINE(HAVE_D_IN_LOOKUP, 1, [d_in_lookup is defined])
1421 EXTRA_KCFLAGS="$tmp_flags"
1425 # LC_LOCK_PAGE_MEMCG
1427 # Kernel version 4.6 adds lock_page_memcg
1429 AC_DEFUN([LC_LOCK_PAGE_MEMCG], [
1430 LB_CHECK_COMPILE([if 'lock_page_memcg' is defined],
1432 #include <linux/memcontrol.h>
1434 lock_page_memcg(NULL);
1436 AC_DEFINE(HAVE_LOCK_PAGE_MEMCG, 1,
1437 [lock_page_memcg is defined])
1439 ]) # LC_LOCK_PAGE_MEMCG
1444 # Kernel version 4.7 commit c8b8e32d700fe943a935e435ae251364d016c497
1445 # direct-io: eliminate the offset argument to ->direct_IO
1447 AC_DEFUN([LC_DIRECTIO_2ARGS], [
1448 LB_CHECK_COMPILE([if '->direct_IO()' taken 2 arguments],
1450 #include <linux/fs.h>
1452 struct address_space_operations ops = { };
1453 struct iov_iter *iter = NULL;
1454 struct kiocb *iocb = NULL;
1457 rc = ops.direct_IO(iocb, iter);
1459 AC_DEFINE(HAVE_DIRECTIO_2ARGS, 1,
1460 [direct_IO need 2 arguments])
1462 ]) # LC_DIRECTIO_2ARGS
1465 # LC_GENERIC_WRITE_SYNC_2ARGS
1467 # Kernel version 4.7 commit dde0c2e79848298cc25621ad080d47f94dbd7cce
1468 # fs: add IOCB_SYNC and IOCB_DSYNC
1470 AC_DEFUN([LC_GENERIC_WRITE_SYNC_2ARGS], [
1471 LB_CHECK_COMPILE([if 'generic_write_sync()' taken 2 arguments],
1472 generic_write_sync_2args, [
1473 #include <linux/fs.h>
1475 struct kiocb *iocb = NULL;
1478 rc = generic_write_sync(iocb, 0);
1480 AC_DEFINE(HAVE_GENERIC_WRITE_SYNC_2ARGS, 1,
1481 [generic_write_sync need 2 arguments])
1483 ]) # LC_GENERIC_WRITE_SYNC_2ARGS
1486 # LC_FOP_ITERATE_SHARED
1488 # Kernel v4.6-rc3-29-g6192269 adds iterate_shared method to file_operations
1490 AC_DEFUN([LC_FOP_ITERATE_SHARED], [
1491 LB_CHECK_COMPILE([if 'file_operations' has 'iterate_shared'],
1492 fop_iterate_shared, [
1493 #include <linux/fs.h>
1495 struct file_operations fop;
1496 fop.iterate_shared = NULL;
1498 AC_DEFINE(HAVE_FOP_ITERATE_SHARED, 1,
1499 [file_operations has iterate_shared])
1501 ]) # LC_FOP_ITERATE_SHARED
1504 # LC_HAVE_POSIX_ACL_VALID_USER_NS
1506 # 4.8 posix_acl_valid takes struct user_namespace
1508 AC_DEFUN([LC_HAVE_POSIX_ACL_VALID_USER_NS], [
1509 LB_CHECK_COMPILE([if 'posix_acl_valid' takes 'struct user_namespace'],
1511 #include <linux/fs.h>
1512 #include <linux/posix_acl.h>
1514 posix_acl_valid((struct user_namespace*)NULL, (const struct posix_acl*)NULL);
1516 AC_DEFINE(HAVE_POSIX_ACL_VALID_USER_NS, 1,
1517 [posix_acl_valid takes struct user_namespace])
1519 ]) # LC_HAVE_POSIX_ACL_VALID_USER_NS
1522 # LC_FULL_NAME_HASH_3ARGS
1524 # Kernel version 4.8 commit 8387ff2577eb9ed245df9a39947f66976c6bcd02
1525 # vfs: make the string hashes salt the hash
1527 AC_DEFUN([LC_FULL_NAME_HASH_3ARGS], [
1528 LB_CHECK_COMPILE([if 'full_name_hash' taken 3 arguments],
1529 full_name_hash_3args, [
1530 #include <linux/stringhash.h>
1533 hash = full_name_hash(NULL,NULL,0);
1535 AC_DEFINE(HAVE_FULL_NAME_HASH_3ARGS, 1,
1536 [full_name_hash need 3 arguments])
1538 ]) # LC_FULL_NAME_HASH_3ARGS
1541 # LC_STRUCT_POSIX_ACL_XATTR
1543 # Kernel version 4.8 commit 2211d5ba5c6c4e972ba6dbc912b2897425ea6621
1544 # posix_acl: xattr representation cleanups
1546 AC_DEFUN([LC_STRUCT_POSIX_ACL_XATTR], [
1547 LB_CHECK_COMPILE([if 'struct posix_acl_xattr_{header,entry}' defined],
1548 struct_posix_acl_xattr, [
1549 #include <linux/fs.h>
1550 #include <linux/posix_acl_xattr.h>
1552 struct posix_acl_xattr_header *h = NULL;
1553 struct posix_acl_xattr_entry *e;
1554 e = (void *)(h + 1);
1556 AC_DEFINE(HAVE_STRUCT_POSIX_ACL_XATTR, 1,
1557 [struct posix_acl_xattr_{header,entry} defined])
1559 ]) # LC_STRUCT_POSIX_ACL_XATTR
1564 # Kernel version 4.8 commit fd50ecaddf8372a1d96e0daeaac0f93cf04e4d42
1565 # removed {get,set,remove}xattr inode operations
1567 AC_DEFUN([LC_IOP_XATTR], [
1568 LB_CHECK_COMPILE([if 'inode_operations' has {get,set,remove}xattr members],
1570 #include <linux/fs.h>
1572 struct inode_operations iop;
1573 iop.setxattr = NULL;
1574 iop.getxattr = NULL;
1575 iop.removexattr = NULL;
1577 AC_DEFINE(HAVE_IOP_XATTR, 1,
1578 [inode_operations has {get,set,remove}xattr members])
1585 # Kernel version 4.9 commit 81243eacfa400f5f7b89f4c2323d0de9982bb0fb
1586 # cred: simpler, 1D supplementary groups
1588 AC_DEFUN([LC_GROUP_INFO_GID], [
1589 LB_CHECK_COMPILE([if 'struct group_info' has member 'gid'],
1591 #include <linux/cred.h>
1594 p = ((struct group_info *)0)->gid;
1596 AC_DEFINE(HAVE_GROUP_INFO_GID, 1,
1597 [struct group_info has member gid])
1599 ]) # LC_GROUP_INFO_GID
1604 # Kernel version 4.9 commit 5d6c31910bc0713e37628dc0ce677dcb13c8ccf4
1605 # added __vfs_{get,set,remove}xattr helpers
1607 AC_DEFUN([LC_VFS_SETXATTR], [
1608 LB_CHECK_COMPILE([if '__vfs_setxattr' helper is available],
1610 #include <linux/xattr.h>
1612 __vfs_setxattr(NULL, NULL, NULL, NULL, 0, 0);
1614 AC_DEFINE(HAVE_VFS_SETXATTR, 1,
1615 ['__vfs_setxattr is available])
1617 ]) # LC_VFS_SETXATTR
1620 # LC_POSIX_ACL_UPDATE_MODE
1622 # Kernel version 4.9 commit 073931017b49d9458aa351605b43a7e34598caef
1623 # posix_acl: Clear SGID bit when setting file permissions
1625 AC_DEFUN([LC_POSIX_ACL_UPDATE_MODE], [
1626 LB_CHECK_COMPILE([if 'posix_acl_update_mode' exists],
1627 posix_acl_update_mode, [
1628 #include <linux/fs.h>
1629 #include <linux/posix_acl.h>
1631 posix_acl_update_mode(NULL, NULL, NULL);
1633 AC_DEFINE(HAVE_POSIX_ACL_UPDATE_MODE, 1,
1634 ['posix_acl_update_mode' is available])
1636 ]) # LC_POSIX_ACL_UPDATE_MODE
1639 # LC_IOP_GENERIC_READLINK
1641 # Kernel version 4.10 commit dfeef68862edd7d4bafe68ef7aeb5f658ef24bb5
1642 # removed generic_readlink from individual file systems
1644 AC_DEFUN([LC_IOP_GENERIC_READLINK], [
1645 LB_CHECK_COMPILE([if 'generic_readlink' still exist],
1646 inode_ops_readlink, [
1647 #include <linux/fs.h>
1649 struct inode_operations iop;
1650 iop.readlink = generic_readlink;
1652 AC_DEFINE(HAVE_IOP_GENERIC_READLINK, 1,
1653 [generic_readlink has been removed])
1655 ]) # LC_IOP_GENERIC_READLINK
1658 # LC_HAVE_VM_FAULT_ADDRESS
1660 # Kernel version 4.10 commit 1a29d85eb0f19b7d8271923d8917d7b4f5540b3e
1661 # removed virtual_address field. Need to use address field instead
1663 AC_DEFUN([LC_HAVE_VM_FAULT_ADDRESS], [
1664 LB_CHECK_COMPILE([if 'struct vm_fault' replaced virtual_address with address field],
1666 #include <linux/mm.h>
1668 struct vm_fault vmf;
1671 AC_DEFINE(HAVE_VM_FAULT_ADDRESS, 1,
1672 [virtual_address has been replaced by address field])
1674 ]) # LC_HAVE_VM_FAULT_ADDRESS
1677 # LC_INODEOPS_ENHANCED_GETATTR
1679 # Kernel version 4.11 commit a528d35e8bfcc521d7cb70aaf03e1bd296c8493f
1680 # expanded getattr to be able to get more stat information.
1682 AC_DEFUN([LC_INODEOPS_ENHANCED_GETATTR], [
1683 LB_CHECK_COMPILE([if 'inode_operations' getattr member can gather advance stats],
1685 #include <linux/fs.h>
1689 ((struct inode_operations *)1)->getattr(&path, NULL, 0, 0);
1691 AC_DEFINE(HAVE_INODEOPS_ENHANCED_GETATTR, 1,
1692 [inode_operations .getattr member function can gather advance stats])
1694 ]) # LC_INODEOPS_ENHANCED_GETATTR
1697 # LC_VM_OPERATIONS_REMOVE_VMF_ARG
1699 # Kernel version 4.11 commit 11bac80004499ea59f361ef2a5516c84b6eab675
1700 # removed struct vm_area_struct as an argument for vm_operations since
1701 # in the same kernel version struct vma_area_struct was folded into
1704 AC_DEFUN([LC_VM_OPERATIONS_REMOVE_VMF_ARG], [
1705 LB_CHECK_COMPILE([if 'struct vm_operations' removed struct vm_area_struct],
1706 vm_operations_no_vm_area_struct, [
1707 #include <linux/mm.h>
1709 struct vm_fault vmf;
1711 ((struct vm_operations_struct *)0)->fault(&vmf);
1712 ((struct vm_operations_struct *)0)->page_mkwrite(&vmf);
1714 AC_DEFINE(HAVE_VM_OPS_USE_VM_FAULT_ONLY, 1,
1715 ['struct vm_operations' remove struct vm_area_struct argument])
1717 ]) # LC_VM_OPERATIONS_REMOVE_VMF_ARG
1720 # LC_HAVE_KEY_USAGE_REFCOUNT
1722 # Kernel version 4.11 commit fff292914d3a2f1efd05ca71c2ba72a3c663201e
1723 # converted key.usage from atomic_t to refcount_t.
1725 AC_DEFUN([LC_HAVE_KEY_USAGE_REFCOUNT], [
1726 LB_CHECK_COMPILE([if 'key.usage' is refcount_t],
1727 key_usage_refcount, [
1728 #include <linux/key.h>
1730 struct key key = { };
1732 refcount_read(&key.usage);
1734 AC_DEFINE(HAVE_KEY_USAGE_REFCOUNT, 1, [key.usage is of type refcount_t])
1736 ]) #LC_HAVE_KEY_USAGE_REFCOUNT
1739 # LC_HAVE_CRYPTO_MAX_ALG_NAME_128
1741 # Kernel version 4.11 commit f437a3f477cce402dbec6537b29e9e33962c9f73
1742 # switched CRYPTO_MAX_ALG_NAME from 64 to 128.
1744 AC_DEFUN([LC_HAVE_CRYPTO_MAX_ALG_NAME_128], [
1745 LB_CHECK_COMPILE([if 'CRYPTO_MAX_ALG_NAME' is 128],
1746 crypto_max_alg_name, [
1747 #include <linux/crypto.h>
1749 #if CRYPTO_MAX_ALG_NAME != 128
1753 AC_DEFINE(HAVE_CRYPTO_MAX_ALG_NAME_128, 1,
1754 ['CRYPTO_MAX_ALG_NAME' is 128])
1756 ]) # LC_HAVE_CRYPTO_MAX_ALG_NAME_128
1759 # Kernel version 4.12 commit 47f38c539e9a42344ff5a664942075bd4df93876
1760 # CURRENT_TIME is not 64 bit time safe so it was replaced with
1763 AC_DEFUN([LC_CURRENT_TIME], [
1764 LB_CHECK_COMPILE([if CURRENT_TIME has been replaced with current_time],
1766 #include <linux/fs.h>
1770 attr.ia_atime = current_time(NULL);
1772 AC_DEFINE(HAVE_CURRENT_TIME, 1,
1773 [current_time() has replaced CURRENT_TIME])
1775 ]) # LIBCFS_CURRENT_TIME
1778 # Kernel version 4.12-rc3 85787090a21eb749d8b347eaf9ff1a455637473c
1779 # changed struct super_block s_uuid into a proper uuid_t
1781 AC_DEFUN([LC_SUPER_BLOCK_S_UUID], [
1782 LB_CHECK_COMPILE([if 'struct super_block' s_uuid is uuid_t],
1783 super_block_s_uuid, [
1784 #include <linux/fs.h>
1786 struct super_block sb;
1788 uuid_parse(NULL, &sb.s_uuid);
1790 AC_DEFINE(HAVE_S_UUID_AS_UUID_T, 1, ['s_uuid' is an uuid_t])
1792 ]) # LC_SUPER_BLOCK_S_UUID
1795 # LC_SUPER_SETUP_BDI_NAME
1797 # Kernel version 4.12 commit 9594caf216dc0fe3e318b34af0127276db661241
1798 # unified bdi handling
1800 AC_DEFUN([LC_SUPER_SETUP_BDI_NAME], [
1801 LB_CHECK_COMPILE([if 'super_setup_bdi_name' exist],
1802 super_setup_bdi_name, [
1803 #include <linux/fs.h>
1805 super_setup_bdi_name(NULL, "lustre");
1807 AC_DEFINE(HAVE_SUPER_SETUP_BDI_NAME, 1,
1808 ['super_setup_bdi_name' is available])
1810 ]) # LC_SUPER_SETUP_BDI_NAME
1815 # 4.12 replace bi_error to bi_status
1817 AC_DEFUN([LC_BI_STATUS], [
1818 LB_CHECK_COMPILE([if 'bi_status' exist],
1820 #include <linux/blk_types.h>
1822 ((struct bio *)0)->bi_status = 0;
1824 AC_DEFINE(HAVE_BI_STATUS, 1,
1825 ['bi_status' is available])
1830 # LC_BIO_INTEGRITY_ENABLED
1832 # 4.13 removed bio_integrity_enabled
1834 AC_DEFUN([LC_BIO_INTEGRITY_ENABLED], [
1835 LB_CHECK_COMPILE([if 'bio_integrity_enabled' exist],
1836 bio_integrity_enabled, [
1837 #include <linux/bio.h>
1839 bio_integrity_enabled(NULL);
1841 AC_DEFINE(HAVE_BIO_INTEGRITY_ENABLED, 1,
1842 ['bio_integrity_enabled' is available])
1844 ]) # LC_BIO_INTEGRITY_ENABLED
1847 # LC_PAGEVEC_INIT_ONE_PARAM
1849 # 4.14 pagevec_init takes one parameter
1851 AC_DEFUN([LC_PAGEVEC_INIT_ONE_PARAM], [
1852 LB_CHECK_COMPILE([if 'pagevec_init' takes one parameter],
1854 #include <linux/pagevec.h>
1858 AC_DEFINE(HAVE_PAGEVEC_INIT_ONE_PARAM, 1,
1859 ['pagevec_init' takes one parameter])
1861 ]) # LC_PAGEVEC_INIT_ONE_PARAM
1866 # 4.14 replaced bi_bdev to bi_disk
1868 AC_DEFUN([LC_BI_BDEV], [
1869 LB_CHECK_COMPILE([if 'bi_bdev' exist],
1871 #include <linux/bio.h>
1873 ((struct bio *)0)->bi_bdev = NULL;
1875 AC_DEFINE(HAVE_BI_BDEV, 1,
1876 ['bi_bdev' is available])
1883 # 4.14 introduced IS_ENCRYPTED and S_ENCRYPTED
1885 AC_DEFUN([LC_IS_ENCRYPTED], [
1886 LB_CHECK_COMPILE([if IS_ENCRYPTED is defined],
1888 #include <linux/fs.h>
1890 IS_ENCRYPTED((struct inode *)0);
1892 has_is_encrypted="yes"
1894 ]) # LC_IS_ENCRYPTED
1899 # kernel 4.17 commit b93b016313b3ba8003c3b8bb71f569af91f19fc7
1901 AC_DEFUN([LC_I_PAGES], [
1902 LB_CHECK_COMPILE([if struct address_space has i_pages],
1904 #include <linux/fs.h>
1906 struct address_space mapping = {};
1909 i_pages = &mapping.i_pages;
1911 AC_DEFINE(HAVE_I_PAGES, 1,
1912 [struct address_space has i_pages])
1919 # kernel 4.17 commit 3d3539018d2cbd12e5af4a132636ee7fd8d43ef0
1920 # mm: create the new vm_fault_t type
1922 AC_DEFUN([LC_VM_FAULT_T], [
1923 LB_CHECK_COMPILE([if vm_fault_t type exists],
1925 #include <linux/mm_types.h>
1927 vm_fault_t x = VM_FAULT_SIGBUS;
1930 AC_DEFINE(HAVE_VM_FAULT_T, 1,
1931 [if vm_fault_t type exists])
1936 # LC_INODE_TIMESPEC64
1938 # kernel 4.17-rc7 commit 8efd6894ff089adeeac7cb9f32125b85d963d1bc
1939 # fs: add timespec64_truncate()
1940 # kernel 4.18 commit 95582b00838837fc07e042979320caf917ce3fe6
1941 # inode timestamps switched to timespec64
1942 # kernel 4.19-rc2 commit 976516404ff3fab2a8caa8bd6f5efc1437fed0b8
1943 # y2038: remove unused time interfaces
1947 # When inode times are timespec64 stop using the deprecated
1950 AC_DEFUN([LC_INODE_TIMESPEC64], [
1951 tmp_flags="$EXTRA_KCFLAGS"
1952 EXTRA_KCFLAGS="-Werror"
1953 LB_CHECK_COMPILE([if inode timestamps are struct timespec64],
1955 #include <linux/fs.h>
1957 struct inode *inode = NULL;
1958 struct timespec64 ts = {};
1960 inode->i_atime = timespec64_trunc(ts, 1);
1963 AC_DEFINE(HAVE_INODE_TIMESPEC64, 1,
1964 [inode times are using timespec64])
1966 EXTRA_KCFLAGS="$tmp_flags"
1967 ]) # LC_INODE_TIMESPEC64
1971 # kernel 4.19-rc6 commit 3159f943aafdbacb2f94c38fdaadabf2bbde2a14
1972 # xarray: Replace exceptional entries
1975 AC_DEFUN([LC_XA_IS_VALUE], [
1976 LB_CHECK_COMPILE([xa_is_value exist],
1978 #include <linux/xarray.h>
1982 AC_DEFINE(HAVE_XA_IS_VALUE, 1, [xa_is_value exist])
1989 # kernel 4.20 commit v4.19-rc5-248-g9b89a0355144
1990 # xarray: Add XArray marks
1992 AC_DEFUN([LC___XA_SET_MARK], [
1993 LB_CHECK_COMPILE([if '__xa_set_mark' exists],
1995 #include <linux/xarray.h>
1996 #include <linux/fs.h>
1998 struct xarray *xa = NULL;
2000 __xa_set_mark(xa, 0, PAGECACHE_TAG_DIRTY);
2002 AC_DEFINE(HAVE___XA_SET_MARK, 1,
2003 [__xa_set_mark exists])
2005 ]) # LC___XA_SET_MARK
2008 # LC_UAPI_LINUX_MOUNT_H
2010 # kernel 4.20 commit e262e32d6bde0f77fb0c95d977482fc872c51996
2011 # vfs: Suppress MS_* flag defs within the kernel ...
2013 AC_DEFUN([LC_UAPI_LINUX_MOUNT_H], [
2014 tmp_flags="$EXTRA_KCFLAGS"
2015 EXTRA_KCFLAGS="-Werror"
2016 LB_CHECK_COMPILE([if MS_RDONLY was moved to uapi/linux/mount.h],
2018 #include <uapi/linux/mount.h>
2023 AC_DEFINE(HAVE_UAPI_LINUX_MOUNT_H, 1,
2024 [if MS_RDONLY was moved to uapi/linux/mount.h])
2026 EXTRA_KCFLAGS="$tmp_flags"
2027 ]) # LC_UAPI_LINUX_MOUNT_H
2030 # LC_HAVE_SUNRPC_CACHE_HASH_LOCK_IS_A_SPINLOCK
2032 # kernel 4.20 commit 1863d77f15da0addcd293a1719fa5d3ef8cde3ca
2033 # SUNRPC: Replace the cache_detail->hash_lock with a regular spinlock
2035 # Now that the reader functions are all RCU protected, use a regular
2036 # spinlock rather than a reader/writer lock.
2038 AC_DEFUN([LC_HAVE_SUNRPC_CACHE_HASH_LOCK_IS_A_SPINLOCK], [
2039 tmp_flags="$EXTRA_KCFLAGS"
2040 EXTRA_KCFLAGS="-Werror"
2041 LB_CHECK_COMPILE([if cache_detail->hash_lock is a spinlock],
2042 hash_lock_isa_spinlock_t, [
2043 #include <linux/sunrpc/cache.h>
2045 spinlock_t *lock = &(((struct cache_detail *)0)->hash_lock);
2048 AC_DEFINE(HAVE_CACHE_HASH_SPINLOCK, 1,
2049 [if cache_detail->hash_lock is a spinlock])
2051 EXTRA_KCFLAGS="$tmp_flags"
2052 ]) # LC_HAVE_SUNRPC_CACHE_HASH_LOCK_IS_A_SPINLOCK
2055 # LC_HAS_LINUX_SELINUX_ENABLED
2057 # kernel 5.1 commit 3d252529480c68bfd6a6774652df7c8968b28e41
2058 # SELinux: Remove unused selinux_is_enabled
2060 AC_DEFUN([LC_HAS_LINUX_SELINUX_ENABLED], [
2061 tmp_flags="$EXTRA_KCFLAGS"
2062 EXTRA_KCFLAGS="-Werror"
2063 LB_CHECK_COMPILE([if linux/selinux.h exists],
2064 selinux_is_enabled, [
2065 #include <linux/selinux.h>
2067 bool has_selinux = selinux_is_enabled();
2070 AC_DEFINE(HAVE_LINUX_SELINUX_IS_ENABLED, 1,
2071 [if linux/selinux.h exists])
2073 EXTRA_KCFLAGS="$tmp_flags"
2074 ]) # LC_HAS_LINUX_SELINUX_ENABLED
2077 # LB_HAVE_BVEC_ITER_ALL
2079 # kernel 5.1 commit 6dc4f100c175dd0511ae8674786e7c9006cdfbfa
2080 # block: allow bio_for_each_segment_all() to iterate over multi-page bvec
2082 AC_DEFUN([LB_HAVE_BVEC_ITER_ALL], [
2083 tmp_flags="$EXTRA_KCFLAGS"
2084 EXTRA_KCFLAGS="-Werror"
2085 LB_CHECK_COMPILE([if bvec_iter_all exists for multi-page bvec iternation],
2087 #include <linux/bvec.h>
2089 struct bvec_iter_all iter;
2092 AC_DEFINE(HAVE_BVEC_ITER_ALL, 1,
2093 [if bvec_iter_all exists for multi-page bvec iternation])
2095 EXTRA_KCFLAGS="$tmp_flags"
2096 ]) # LB_HAVE_BVEC_ITER_ALL
2099 # LC_ACCOUNT_PAGE_DIRTIED
2101 # After 5.2 kernel page dirtied is not exported
2103 AC_DEFUN([LC_ACCOUNT_PAGE_DIRTIED], [
2104 LB_CHECK_EXPORT([account_page_dirtied], [mm/page-writeback.c],
2105 [AC_DEFINE(HAVE_ACCOUNT_PAGE_DIRTIED_EXPORT, 1,
2106 [account_page_dirtied is exported])])
2107 ]) # LC_ACCOUNT_PAGE_DIRTIED
2110 # LC_KEYRING_SEARCH_4ARGS
2112 # Kernel 5.2 commit dcf49dbc8077
2113 # keys: Add a 'recurse' flag for keyring searches
2115 AC_DEFUN([LC_KEYRING_SEARCH_4ARGS], [
2116 LB_CHECK_COMPILE([if 'keyring_search' has 4 args],
2117 keyring_search_4args, [
2118 #include <linux/key.h>
2121 keyring_search(keyring, NULL, NULL, false);
2123 AC_DEFINE(HAVE_KEYRING_SEARCH_4ARGS, 1,
2124 [keyring_search has 4 args])
2126 ]) # LC_KEYRING_SEARCH_4ARGS
2129 # LC_BIO_BI_PHYS_SEGMENTS
2131 # kernel 5.3-rc1 commit 14ccb66b3f585b2bc21e7256c96090abed5a512c
2132 # block: remove the bi_phys_segments field in struct bio
2134 AC_DEFUN([LC_BIO_BI_PHYS_SEGMENTS], [
2135 tmp_flags="$EXTRA_KCFLAGS"
2136 EXTRA_KCFLAGS="-Werror"
2137 LB_CHECK_COMPILE([if struct bio has bi_phys_segments member],
2138 bye_bio_bi_phys_segments, [
2139 #include <linux/bio.h>
2141 struct bio *bio = NULL;
2142 bio->bi_phys_segments++;
2144 AC_DEFINE(HAVE_BIO_BI_PHYS_SEGMENTS, 1,
2145 [struct bio has bi_phys_segments member])
2147 EXTRA_KCFLAGS="$tmp_flags"
2148 ]) # LC_BIO_BI_PHYS_SEGMENTS
2151 # LC_LM_COMPARE_OWNER_EXISTS
2153 # kernel 5.3-rc3 commit f85d93385e9fe6886a751f647f6812a89bf6bee3
2154 # locks: Cleanup lm_compare_owner and lm_owner_key
2155 # removed lm_compare_owner
2157 AC_DEFUN([LC_LM_COMPARE_OWNER_EXISTS], [
2158 tmp_flags="$EXTRA_KCFLAGS"
2159 EXTRA_KCFLAGS="-Werror"
2160 LB_CHECK_COMPILE([if lock_manager_operations has lm_compare_owner],
2161 lock_manager_ops_lm_compare_owner, [
2162 #include <linux/fs.h>
2164 struct lock_manager_operations lm_ops;
2165 lm_ops.lm_compare_owner = NULL;
2167 AC_DEFINE(HAVE_LM_COMPARE_OWNER, 1,
2168 [lock_manager_operations has lm_compare_owner])
2170 EXTRA_KCFLAGS="$tmp_flags"
2171 ]) # LC_LM_COMPARE_OWNER_EXISTS
2174 # LC_FSCRYPT_SUPPORT
2176 # 5.4 introduced fscrypt encryption policies v2
2178 AC_DEFUN([LC_FSCRYPT_SUPPORT], [
2179 LB_CHECK_COMPILE([for fscrypt in-kernel support],
2181 #define __FS_HAS_ENCRYPTION 0
2182 #include <linux/fscrypt.h>
2184 fscrypt_ioctl_get_policy_ex(NULL, NULL);
2186 has_fscrypt_support="yes"
2188 ]) # LC_FSCRYPT_SUPPORT
2193 # Lustre linux kernel checks
2195 AC_DEFUN([LC_PROG_LINUX], [
2196 AC_MSG_NOTICE([Lustre kernel checks
2197 ==============================================================================])
2202 LC_CONFIG_HEALTH_CHECK_WRITE
2203 LC_CONFIG_LRU_RESIZE
2207 LC_GLIBC_SUPPORT_FHANDLES
2212 LC_HAVE_PROJECT_QUOTA
2218 LC_HAVE_DENTRY_D_U_D_ALIAS
2219 LC_HAVE_DENTRY_D_CHILD
2220 LC_PID_NS_FOR_CHILDREN
2223 LC_OLDSIZE_TRUNCATE_PAGECACHE
2224 LC_PTR_ERR_OR_ZERO_MISSING
2230 LC_HAVE_D_IS_POSITIVE
2234 LC_HAVE_TRUNCATE_IPAGES_FINAL
2235 LC_IOPS_RENAME_WITH_FLAGS
2242 LC_DIRECTIO_USE_ITER
2243 LC_HAVE_IOV_ITER_INIT_DIRECTION
2244 LC_HAVE_IOV_ITER_TRUNCATE
2245 LC_HAVE_FILE_OPERATIONS_READ_WRITE_ITER
2248 LC_HAVE_INTERVAL_BLK_INTEGRITY
2252 LC_PERCPU_COUNTER_INIT
2253 LC_NFS_FILLDIR_USE_CTX
2257 LC_HAVE_DQUOT_QC_DQBLK
2258 LC_HAVE_AIO_COMPLETE
2261 LC_BACKING_DEV_INFO_REMOVAL
2262 LC_HAVE_BDI_CAP_MAP_COPY
2266 LC_HAVE_SYNC_READ_WRITE
2270 LC_BIO_ENDIO_USES_ONE_ARG
2271 LC_SYMLINK_OPS_USE_NAMEIDATA
2272 LC_ACCOUNT_PAGE_DIRTIED_3ARGS
2275 LC_HAVE_INTERVAL_EXP_BLK_INTEGRITY
2276 LC_HAVE_BIP_ITER_BIO_INTEGRITY_PAYLOAD
2277 LC_HAVE_CACHE_HEAD_HLIST
2278 LC_HAVE_XATTR_HANDLER_SIMPLIFIED
2281 LC_HAVE_LOCKS_LOCK_FILE_WAIT
2282 LC_HAVE_KEY_PAYLOAD_DATA_ARRAY
2283 LC_HAVE_XATTR_HANDLER_NAME
2285 LC_HAVE_SUBMIT_BIO_2ARGS
2286 LC_HAVE_CLEAN_BDEV_ALIASES
2293 LC_HAVE_IOP_GET_LINK
2296 LC_HAVE_IN_COMPAT_SYSCALL
2297 LC_HAVE_XATTR_HANDLER_INODE_PARAM
2303 LC_GENERIC_WRITE_SYNC_2ARGS
2304 LC_FOP_ITERATE_SHARED
2307 LC_HAVE_POSIX_ACL_VALID_USER_NS
2308 LC_FULL_NAME_HASH_3ARGS
2309 LC_STRUCT_POSIX_ACL_XATTR
2315 LC_POSIX_ACL_UPDATE_MODE
2318 LC_IOP_GENERIC_READLINK
2319 LC_HAVE_VM_FAULT_ADDRESS
2322 LC_INODEOPS_ENHANCED_GETATTR
2323 LC_VM_OPERATIONS_REMOVE_VMF_ARG
2324 LC_HAVE_KEY_USAGE_REFCOUNT
2325 LC_HAVE_CRYPTO_MAX_ALG_NAME_128
2329 LC_SUPER_BLOCK_S_UUID
2330 LC_SUPER_SETUP_BDI_NAME
2334 LC_BIO_INTEGRITY_ENABLED
2337 LC_PAGEVEC_INIT_ONE_PARAM
2350 LC_UAPI_LINUX_MOUNT_H
2351 LC_HAVE_SUNRPC_CACHE_HASH_LOCK_IS_A_SPINLOCK
2354 LC_HAS_LINUX_SELINUX_ENABLED
2355 LB_HAVE_BVEC_ITER_ALL
2358 LC_ACCOUNT_PAGE_DIRTIED
2359 LC_KEYRING_SEARCH_4ARGS
2362 LC_BIO_BI_PHYS_SEGMENTS
2363 LC_LM_COMPARE_OWNER_EXISTS
2365 # kernel patch to extend integrity interface
2366 LC_BIO_INTEGRITY_PREP_FN
2369 AS_IF([test "x$enable_server" != xno], [
2379 # Check whether to build the client side of Lustre
2381 AC_DEFUN([LC_CONFIG_CLIENT], [
2382 AC_MSG_CHECKING([whether to build Lustre client support])
2383 AC_ARG_ENABLE([client],
2384 AC_HELP_STRING([--disable-client],
2385 [disable Lustre client support]),
2386 [], [enable_client="yes"])
2387 AC_MSG_RESULT([$enable_client])
2388 ]) # LC_CONFIG_CLIENT
2393 AC_DEFUN([LB_CONFIG_MPITESTS], [
2394 AC_ARG_ENABLE([mpitests],
2395 AC_HELP_STRING([--enable-mpitests=<yes|no|mpicc wrapper>],
2396 [include mpi tests]), [
2397 enable_mpitests="yes"
2400 MPICC_WRAPPER="mpicc"
2401 MPI_BIN=$(eval which $MPICC_WRAPPER | xargs dirname)
2404 enable_mpitests="no"
2408 MPICC_WRAPPER=$enableval
2409 MPI_BIN=$(eval echo $MPICC_WRAPPER | xargs dirname)
2413 enable_mpitests="yes"
2414 MPICC_WRAPPER="mpicc"
2415 MPI_BIN=$(eval which $MPICC_WRAPPER | xargs dirname)
2418 if test "x$enable_mpitests" != "xno"; then
2421 AC_CACHE_CHECK([whether mpitests can be built],
2422 lb_cv_mpi_tests, [AC_COMPILE_IFELSE([AC_LANG_SOURCE([
2426 MPI_Initialized(&flag);
2429 ])], [lb_cv_mpi_tests="yes"], [lb_cv_mpi_tests="no"])
2431 enable_mpitests=$lb_cv_mpi_tests
2435 AC_SUBST(MPICC_WRAPPER)
2436 ]) # LB_CONFIG_MPITESTS
2441 # whether to enable quota support global control
2443 AC_DEFUN([LC_CONFIG_QUOTA], [
2444 AC_MSG_CHECKING([whether to enable quota support global control])
2445 AC_ARG_ENABLE([quota],
2446 AC_HELP_STRING([--enable-quota],
2447 [enable quota support]),
2448 [], [enable_quota="yes"])
2449 AS_IF([test "x$enable_quota" = xyes],
2450 [AC_MSG_RESULT([yes])],
2451 [AC_MSG_RESULT([no])])
2452 ]) # LC_CONFIG_QUOTA
2457 AC_DEFUN([LC_QUOTA], [
2461 AS_IF([test "x$enable_quota" != xno -a "x$enable_utils" != xno], [
2462 AC_CHECK_HEADER([sys/quota.h],
2463 [AC_DEFINE(HAVE_SYS_QUOTA_H, 1,
2464 [Define to 1 if you have <sys/quota.h>.])],
2465 [AC_MSG_ERROR([don't find <sys/quota.h> in your system])])
2472 # configure support for optional OSD implementation
2474 AC_DEFUN([LC_OSD_ADDON], [
2475 AC_MSG_CHECKING([whether to use OSD addon])
2477 AC_HELP_STRING([--with-osd=path],
2478 [set path to optional osd]),
2485 OSDADDON="$with_osd"
2492 AS_IF([test $ENABLEOSDADDON -eq 0], [
2496 OSDMODNAME=$(basename $OSDADDON)
2497 AS_IF([test -e $LUSTRE/$OSDMODNAME], [
2498 AC_MSG_RESULT([can't link])
2500 ], [ln -s $OSDADDON $LUSTRE/$OSDMODNAME], [
2501 AC_MSG_RESULT([$OSDMODNAME])
2502 OSDADDON="obj-m += $OSDMODNAME/"
2504 AC_MSG_RESULT([can't link])
2514 # Check whether to enable Lustre client crypto
2516 AC_DEFUN([LC_CONFIG_CRYPTO], [
2517 AC_MSG_CHECKING([whether to enable Lustre client crypto])
2518 AC_ARG_ENABLE([crypto],
2519 AC_HELP_STRING([--enable-crypto],
2520 [enable Lustre client crypto]),
2521 [], [enable_crypto="auto"])
2522 AS_IF([test "x$enable_crypto" != xno -a "x$enable_dist" = xno], [
2526 LC_FSCRYPT_SUPPORT])
2527 AS_IF([test "x$has_fscrypt_support" = xyes], [
2528 AC_DEFINE(HAVE_LUSTRE_CRYPTO, 1, [Enable Lustre client crypto via in-kernel fscrypt])
2530 [AS_IF([test "x$has_is_encrypted" = xyes], [
2531 AC_DEFINE(HAVE_LUSTRE_CRYPTO, 1, [Enable Lustre client crypto via embedded llcrypt])
2532 AC_DEFINE(CONFIG_LL_ENCRYPTION, 1, [embedded llcrypt])
2534 enable_llcrypt=yes], [
2535 AS_IF([test "x$enable_crypto" = xyes],
2536 [AC_MSG_ERROR([Lustre client crypto cannot be enabled because of lack of encryption support in your kernel.])])
2537 AS_IF([test "x$enable_crypto" != xno -a "x$enable_dist" = xno],
2538 [AC_MSG_WARN(Lustre client crypto cannot be enabled because of lack of encryption support in your kernel.)])
2539 enable_crypto=no])])
2540 AS_IF([test "x$enable_dist" != xno], [
2542 enable_llcrypt=yes])
2543 AC_MSG_RESULT([$enable_crypto])
2544 ]) # LC_CONFIG_CRYPTO
2549 # other configure checks
2551 AC_DEFUN([LC_CONFIGURE], [
2552 AC_MSG_NOTICE([Lustre core checks
2553 ==============================================================================])
2555 AS_IF([test $target_cpu == "i686" -o $target_cpu == "x86_64"],
2556 [CFLAGS="$CFLAGS -Wall -Werror"])
2558 # maximum MDS thread count
2561 # lustre/utils/gss/gss_util.c
2562 # lustre/utils/gss/gssd_proc.c
2563 # lustre/utils/gss/krb5_util.c
2564 # lustre/utils/llog_reader.c
2565 # lustre/utils/create_iam.c
2566 # lustre/utils/libiam.c
2567 AC_CHECK_HEADERS([netdb.h endian.h])
2568 AC_CHECK_FUNCS([gethostbyname])
2570 # lustre/utils/llverfs.c lustre/utils/libmount_utils_ldiskfs.c
2571 AC_CHECK_HEADERS([ext2fs/ext2fs.h], [], [
2572 AS_IF([test "x$enable_utils" = xyes -a "x$enable_ldiskfs" = xyes], [
2574 ext2fs.h not found. Please install e2fsprogs development package.
2579 # lustre/utils/lfs.c
2580 AS_IF([test "$enable_dist" = "no"], [
2581 AC_CHECK_LIB([z], [crc32], [
2582 AC_CHECK_HEADER([zlib.h], [], [
2583 AC_MSG_ERROR([zlib.h not found.])])
2586 zlib library not found. Please install zlib development package.])
2592 AC_CHECK_LIB([selinux], [is_selinux_enabled],
2593 [AC_CHECK_HEADERS([selinux/selinux.h],
2594 [SELINUX="-lselinux"
2595 AC_DEFINE([HAVE_SELINUX], 1,
2596 [support for selinux ])],
2599 No libselinux-devel package found, unable to build selinux enabled tools
2604 No selinux package found, unable to build selinux enabled tools
2610 AC_MSG_CHECKING([whether to report minimum OST free space])
2611 AC_ARG_ENABLE([mindf],
2612 AC_HELP_STRING([--enable-mindf],
2613 [Make statfs report the minimum available space on any single OST instead of the sum of free space on all OSTs]),
2614 [], [enable_mindf="no"])
2615 AC_MSG_RESULT([$enable_mindf])
2616 AS_IF([test "$enable_mindf" = "yes"],
2617 [AC_DEFINE([MIN_DF], 1, [Report minimum OST free space])])
2619 AC_MSG_CHECKING([whether to randomly failing memory alloc])
2620 AC_ARG_ENABLE([fail_alloc],
2621 AC_HELP_STRING([--disable-fail-alloc],
2622 [disable randomly alloc failure]),
2623 [], [enable_fail_alloc="yes"])
2624 AC_MSG_RESULT([$enable_fail_alloc])
2625 AS_IF([test "x$enable_fail_alloc" != xno],
2626 [AC_DEFINE([RANDOM_FAIL_ALLOC], 1,
2627 [enable randomly alloc failure])])
2629 AC_MSG_CHECKING([whether to check invariants (expensive cpu-wise)])
2630 AC_ARG_ENABLE([invariants],
2631 AC_HELP_STRING([--enable-invariants],
2632 [enable invariant checking (cpu intensive)]),
2633 [], [enable_invariants="no"])
2634 AC_MSG_RESULT([$enable_invariants])
2635 AS_IF([test "x$enable_invariants" = xyes],
2636 [AC_DEFINE([CONFIG_LUSTRE_DEBUG_EXPENSIVE_CHECK], 1,
2637 [enable invariant checking])])
2639 AC_MSG_CHECKING([whether to track references with lu_ref])
2640 AC_ARG_ENABLE([lu_ref],
2641 AC_HELP_STRING([--enable-lu_ref],
2642 [enable lu_ref reference tracking code]),
2643 [], [enable_lu_ref="no"])
2644 AC_MSG_RESULT([$enable_lu_ref])
2645 AS_IF([test "x$enable_lu_ref" = xyes],
2646 [AC_DEFINE([USE_LU_REF], 1,
2647 [enable lu_ref reference tracking code])])
2649 AC_MSG_CHECKING([whether to enable page state tracking])
2650 AC_ARG_ENABLE([pgstate-track],
2651 AC_HELP_STRING([--enable-pgstate-track],
2652 [enable page state tracking]),
2653 [], [enable_pgstat_track="no"])
2654 AC_MSG_RESULT([$enable_pgstat_track])
2655 AS_IF([test "x$enable_pgstat_track" = xyes],
2656 [AC_DEFINE([CONFIG_DEBUG_PAGESTATE_TRACKING], 1,
2657 [enable page state tracking code])])
2660 AC_MSG_CHECKING([systemd unit file directory])
2661 AC_ARG_WITH([systemdsystemunitdir],
2662 [AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
2663 [Directory for systemd service files])],
2664 [], [with_systemdsystemunitdir=auto])
2665 AS_IF([test "x$with_systemdsystemunitdir" = "xyes" -o "x$with_systemdsystemunitdir" = "xauto"],
2666 [def_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
2667 AS_IF([test "x$def_systemdsystemunitdir" = "x"],
2668 [AS_IF([test "x$with_systemdsystemunitdir" = "xyes"],
2669 [AC_MSG_ERROR([systemd support requested but pkg-config unable to query systemd package])])
2670 with_systemdsystemunitdir=no],
2671 [with_systemdsystemunitdir="$def_systemdsystemunitdir"])])
2672 AS_IF([test "x$with_systemdsystemunitdir" != "xno"],
2673 [AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])])
2674 AC_MSG_RESULT([$with_systemdsystemunitdir])
2676 AC_MSG_CHECKING([bash-completion directory])
2677 AC_ARG_WITH([bash-completion-dir],
2678 AS_HELP_STRING([--with-bash-completion-dir[=PATH]],
2679 [Install the bash auto-completion script in this directory.]),
2681 [with_bash_completion_dir=yes])
2682 AS_IF([test "x$with_bash_completion_dir" = "xyes"], [
2683 BASH_COMPLETION_DIR="`pkg-config --variable=completionsdir bash-completion`"
2684 AS_IF([test "x$BASH_COMPLETION_DIR" = "x"], [
2685 [BASH_COMPLETION_DIR="$datadir/bash-completion/completions"]
2688 BASH_COMPLETION_DIR="$with_bash_completion_dir"
2690 AC_SUBST([BASH_COMPLETION_DIR])
2691 AC_MSG_RESULT([$BASH_COMPLETION_DIR])
2697 # AM_CONDITIONALS for lustre
2699 AC_DEFUN([LC_CONDITIONALS], [
2700 AM_CONDITIONAL(MPITESTS, test x$enable_mpitests = xyes, Build MPI Tests)
2701 AM_CONDITIONAL(CLIENT, test x$enable_client = xyes)
2702 AM_CONDITIONAL(SERVER, test x$enable_server = xyes)
2703 AM_CONDITIONAL(SPLIT, test x$enable_split = xyes)
2704 AM_CONDITIONAL(EXT2FS_DEVEL, test x$ac_cv_header_ext2fs_ext2fs_h = xyes)
2705 AM_CONDITIONAL(GSS, test x$enable_gss = xyes)
2706 AM_CONDITIONAL(GSS_KEYRING, test x$enable_gss_keyring = xyes)
2707 AM_CONDITIONAL(GSS_PIPEFS, test x$enable_gss_pipefs = xyes)
2708 AM_CONDITIONAL(GSS_SSK, test x$enable_ssk = xyes)
2709 AM_CONDITIONAL(LIBPTHREAD, test x$enable_libpthread = xyes)
2710 AM_CONDITIONAL(HAVE_SYSTEMD, test "x$with_systemdsystemunitdir" != "xno")
2711 AM_CONDITIONAL(ENABLE_BASH_COMPLETION, test "x$with_bash_completion_dir" != "xno")
2712 AM_CONDITIONAL(XATTR_HANDLER, test "x$lb_cv_compile_xattr_handler_flags" = xyes)
2713 AM_CONDITIONAL(SELINUX, test "$SELINUX" = "-lselinux")
2714 AM_CONDITIONAL(GETSEPOL, test x$enable_getsepol = xyes)
2715 AM_CONDITIONAL(LLCRYPT, test x$enable_llcrypt = xyes)
2716 ]) # LC_CONDITIONALS
2721 # files that should be generated with AC_OUTPUT
2723 AC_DEFUN([LC_CONFIG_FILES],
2727 lustre/autoconf/Makefile
2728 lustre/conf/Makefile
2729 lustre/conf/resource/Makefile
2730 lustre/contrib/Makefile
2732 lustre/include/Makefile
2733 lustre/include/lustre/Makefile
2734 lustre/include/uapi/linux/lustre/Makefile
2735 lustre/kernel_patches/targets/4.18-rhel8.1.target
2736 lustre/kernel_patches/targets/4.18-rhel8.target
2737 lustre/kernel_patches/targets/3.10-rhel7.8.target
2738 lustre/kernel_patches/targets/3.10-rhel7.7.target
2739 lustre/kernel_patches/targets/3.10-rhel7.6.target
2740 lustre/kernel_patches/targets/3.10-rhel7.5.target
2741 lustre/kernel_patches/targets/4.14-rhel7.5.target
2742 lustre/kernel_patches/targets/4.14-rhel7.6.target
2743 lustre/kernel_patches/targets/3.0-sles11.target
2744 lustre/kernel_patches/targets/3.0-sles11sp3.target
2745 lustre/kernel_patches/targets/3.0-sles11sp4.target
2746 lustre/kernel_patches/targets/3.12-sles12.target
2747 lustre/kernel_patches/targets/4.4-sles12.target
2748 lustre/kernel_patches/targets/4.4-sles12sp3.target
2749 lustre/kernel_patches/targets/4.12-sles12sp4.target
2750 lustre/kernel_patches/targets/4.12-sles15sp1.target
2751 lustre/kernel_patches/targets/3.x-fc18.target
2752 lustre/ldlm/Makefile
2754 lustre/fid/autoMakefile
2755 lustre/llite/Makefile
2756 lustre/llite/autoMakefile
2758 lustre/lov/autoMakefile
2760 lustre/mdc/autoMakefile
2762 lustre/lmv/autoMakefile
2763 lustre/lfsck/Makefile
2764 lustre/lfsck/autoMakefile
2766 lustre/mdt/autoMakefile
2768 lustre/mdd/autoMakefile
2770 lustre/fld/autoMakefile
2771 lustre/obdclass/Makefile
2772 lustre/obdclass/autoMakefile
2773 lustre/obdecho/Makefile
2774 lustre/obdecho/autoMakefile
2776 lustre/ofd/autoMakefile
2778 lustre/osc/autoMakefile
2780 lustre/ost/autoMakefile
2781 lustre/osd-ldiskfs/Makefile
2782 lustre/osd-ldiskfs/autoMakefile
2783 lustre/osd-zfs/Makefile
2784 lustre/osd-zfs/autoMakefile
2786 lustre/mgc/autoMakefile
2788 lustre/mgs/autoMakefile
2789 lustre/target/Makefile
2790 lustre/ptlrpc/Makefile
2791 lustre/ptlrpc/autoMakefile
2792 lustre/ptlrpc/gss/Makefile
2793 lustre/ptlrpc/gss/autoMakefile
2794 lustre/quota/Makefile
2795 lustre/quota/autoMakefile
2796 lustre/scripts/Makefile
2797 lustre/scripts/systemd/Makefile
2798 lustre/tests/Makefile
2799 lustre/tests/mpi/Makefile
2800 lustre/tests/kernel/Makefile
2801 lustre/tests/kernel/autoMakefile
2802 lustre/utils/Makefile
2803 lustre/utils/gss/Makefile
2805 lustre/osp/autoMakefile
2807 lustre/lod/autoMakefile
2809 ]) # LC_CONFIG_FILES