From 71111d423a6347b0cda05e58926e73ec33dcb6a4 Mon Sep 17 00:00:00 2001 From: yangsheng Date: Wed, 27 May 2009 08:31:02 +0000 Subject: [PATCH] Branch b1_8 b=18668 Recommit quota64 config check part. --- lustre/autoconf/lustre-core.m4 | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 index ecd7ed4..5100462 100644 --- a/lustre/autoconf/lustre-core.m4 +++ b/lustre/autoconf/lustre-core.m4 @@ -2171,12 +2171,24 @@ LB_LINUX_TRY_COMPILE([ ],[],[ AC_DEFINE(HAVE_QUOTA64, 1, [have quota64]) AC_MSG_RESULT([yes]) - ],[ - AC_MSG_WARN([4 TB (or larger) block quota limits can only be used with OSTs not larger than 4 TB.]) - AC_MSG_WARN([Continuing with limited quota support.]) - AC_MSG_WARN([quotacheck is needed for filesystems with recent quota versions.]) - AC_MSG_RESULT([no]) + tmp_flags="$EXTRA_KCFLAGS" + EXTRA_KCFLAGS="-I $LINUX/fs" + LB_LINUX_TRY_COMPILE([ + #include + #include + #include + struct v2r1_disk_dqblk dqblk_r1; + ],[],[ + AC_DEFINE(HAVE_QUOTA64, 1, [have quota64]) + AC_MSG_RESULT([yes]) + ],[ + AC_MSG_WARN([4 TB (or larger) block quota limits can only be used with OSTs not larger than 4 TB.]) + AC_MSG_WARN([Continuing with limited quota support.]) + AC_MSG_WARN([quotacheck is needed for filesystems with recent quota versions.]) + AC_MSG_RESULT([no]) + ]) + EXTRA_KCFLAGS=$tmp_flags ]) ]) -- 1.8.3.1