Whamcloud - gitweb
LU-1484 lprocfs: enable HAVE_PROCFS_USERS for rhel kernels
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Thu, 14 Feb 2013 21:27:05 +0000 (16:27 -0500)
committerJohann Lombardi <johann.lombardi@intel.com>
Mon, 18 Feb 2013 13:04:43 +0000 (08:04 -0500)
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.

Test-Parameters: envdefinitions=SLOW=yes clientdistro=el5 \
  serverdistro=el5 clientarch=x86_64 serverarch=x86_64 \
  testlist=recovery-small

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: If17ecb0902ec90a1af6228d2b9b1b72bc68a6672
Reviewed-on: http://review.whamcloud.com/5439
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
lustre/autoconf/lustre-core.m4

index 47ff230..df63ac9 100644 (file)
@@ -1254,7 +1254,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
        ])
 ])
 ])