From: Nathaniel Clark Date: Thu, 14 Feb 2013 21:27:05 +0000 (-0500) Subject: LU-1484 lprocfs: enable HAVE_PROCFS_USERS for rhel kernels X-Git-Tag: 2.1.5~24 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=f451f97a4b8af8007749406f69a43b0741415397;p=fs%2Flustre-release.git LU-1484 lprocfs: enable HAVE_PROCFS_USERS for rhel kernels For rhel kernels, given only the kernel-devel rpm it is not possible to tell if proc_dir_entry_aux is defined, so assume it is. It has been included since late in the 5.x release cycle. Originally Change-Id: If17ecb0902ec90a1af6228d2b9b1b72bc68a6672 Test-Parameters: envdefinitions=SLOW=yes clientdistro=el5 serverdistro=el5 clientarch=x86_64 serverarch=x86_64 testlist=recovery-small Signed-off-by: Nathaniel Clark Change-Id: I7cde85592759abe020ff31fbf4840717b3e95bef Reviewed-on: http://review.whamcloud.com/5468 Reviewed-by: Bobi Jam Tested-by: Hudson Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Oleg Drokin --- diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index 297b3a5..ba47d60 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1625,7 +1625,14 @@ LB_LINUX_TRY_COMPILE([ AC_DEFINE(HAVE_PROCFS_USERS, 1, [kernel has pde_users member in proc_dir_entry_aux]) ],[ - AC_MSG_RESULT([no]) + if test x$RHEL_KERNEL = xyes; then + AC_MSG_RESULT([yes]) + AC_DEFINE(HAVE_PROCFS_USERS, 1, + [assuming kernel has pde_users member in proc_dir_entry_aux]) + AC_MSG_WARN([Assuming kernel has proc_dir_entry_aux]) + else + AC_MSG_RESULT([no]) + fi ]) ]) ])