From: <ch...@su...> - 2013-09-04 12:02:53
|
Hi! > > Define HAVE_XFS_QUOTA to show if xfs quota is available. > > +AC_DEFUN([LTP_CHECK_XFS_QUOTACTL],[dnl > + AC_LINK_IFELSE([AC_LANG_SOURCE([ > +#include <xfs/xqm.h> > +#include <sys/quota.h> > +int main(void) { > + struct fs_quota_stat qstat; > + return quotactl(QCMD(Q_XGETQSTAT, USRQUOTA), "/dev/null", geteuid(), > + (caddr_t) &qstat); > +}])],[has_xfs_quota="yes"]) > + > +if test "x$has_xfs_quota" = xyes; then > + AC_DEFINE(HAVE_XFS_QUOTA,1,[Define to 1 if you have xfs quota]) > +else > + AC_MSG_WARN(No xfs quota support) > +fi > +]) I've modified this part to print the more standard: Checking for XFS quota (xfs/xqm.h)...{yes,no} rather than issuing the warning and commited both patches. Thanks. -- Cyril Hrubis ch...@su... |