Skip to content
Snippets Groups Projects
Commit f5649aa1 authored by Yong Fan's avatar Yong Fan
Browse files

Branch HEAD

b=13058
i=alexey.lyashkov
i=tianzy

64 bit quota support check when autoconf.
parent 7915d7af
No related branches found
No related tags found
No related merge requests found
...@@ -1954,26 +1954,29 @@ LB_LINUX_TRY_COMPILE([ ...@@ -1954,26 +1954,29 @@ LB_LINUX_TRY_COMPILE([
# #
# LC_QUOTA64 # LC_QUOTA64
# linux kernel may have 64-bit limits support # linux kernel have 64-bit limits support
# #
AC_DEFUN([LC_QUOTA64], AC_DEFUN([LC_QUOTA64],
[AC_MSG_CHECKING([if kernel has 64-bit quota limits support]) [if test x$enable_quota_module = xyes; then
LB_LINUX_TRY_COMPILE([ AC_MSG_CHECKING([if kernel has 64-bit quota limits support])
#include <linux/kernel.h> LB_LINUX_TRY_COMPILE([
#include <linux/fs.h> #include <linux/kernel.h>
#include <linux/quotaio_v2.h> #include <linux/fs.h>
int versions[] = V2_INITQVERSIONS_R1; #include <linux/quotaio_v2.h>
struct v2_disk_dqblk_r1 dqblk_r1; int versions[] = V2_INITQVERSIONS_R1;
],[],[ struct v2_disk_dqblk_r1 dqblk_r1;
AC_DEFINE(HAVE_QUOTA64, 1, [have quota64]) ],[],[
AC_MSG_RESULT([yes]) AC_DEFINE(HAVE_QUOTA64, 1, [have quota64])
AC_MSG_RESULT([yes])
],[ ],[
AC_MSG_WARN([You have got no 64-bit kernel quota support.]) LB_CHECK_FILE([$LINUX/include/linux/lustre_version.h],[
AC_MSG_WARN([Continuing with limited quota support.]) if test x$enable_server = xyes ; then
AC_MSG_WARN([quotacheck is needed for filesystems with recent quota versions.]) AC_MSG_ERROR([You have got no 64-bit kernel quota support.])
AC_MSG_RESULT([no]) fi
]) ],[])
AC_MSG_RESULT([no])
])
fi
]) ])
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment