X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fautoconf%2Flustre-core.m4;h=6ccbfc7e6cbe8ac9233b27e1610b436509a4354c;hp=b8285d05b3a80ff97aa3e97f4fdbb91d00eecfcc;hb=d2c33f43a62e6c5d71288e2895b9668c76c06f9b;hpb=64bd7b933e1bd108ee06832e949b3b0c127be8c7 diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index b8285d0..6ccbfc7 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -1948,6 +1948,32 @@ bio_endio, [ ]) # LC_BIO_ENDIO_USES_ONE_ARG # +# LC_HAVE_LOOP_CTL_GET_FREE +# +# 4.x kernel have moved userspace APIs to +# the separate directory and all of them +# support LOOP_CTL_GET_FREE +# +AC_DEFUN([LC_HAVE_LOOP_CTL_GET_FREE], [ +LB_CHECK_FILE([$LINUX/include/linux/loop.h], [ + LB_CHECK_COMPILE([if have 'HAVE_LOOP_CTL_GET_FREE'], + LOOP_CTL_GET_FREE, [ + #include + ],[ + int i; + + i = LOOP_CTL_GET_FREE; + ],[ + AC_DEFINE(HAVE_LOOP_CTL_GET_FREE, 1, + [LOOP_CTL_GET_FREE exist]) + ]) +],[ + AC_DEFINE(HAVE_LOOP_CTL_GET_FREE, 1, + [kernel has LOOP_CTL_GET_FREE]) +]) +]) # LC_HAVE_LOOP_CTL_GET_FREE + +# # LC_PROG_LINUX # # Lustre linux kernel checks @@ -2012,6 +2038,7 @@ AC_DEFUN([LC_PROG_LINUX], [ LC_FILE_LLSEEK_SIZE LC_INODE_PERMISION_2ARGS LC_RADIX_EXCEPTION_ENTRY + LC_HAVE_LOOP_CTL_GET_FREE # 3.2 LC_HAVE_VOID_MAKE_REQUEST_FN