public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
  • [parent not found: <521EB988.7000407@cn.fujitsu.com>]
  • * Re: [LTP] [PATCH 1/2 v2] Check if xfs quota is available
           [not found] <521C4688.9020305@cn.fujitsu.com>
           [not found] ` <521C46FB.7020308@cn.fujitsu.com>
           [not found] ` <521EB988.7000407@cn.fujitsu.com>
    @ 2013-09-04 12:03 ` chrubis
      2 siblings, 0 replies; 5+ messages in thread
    From: chrubis @ 2013-09-04 12:03 UTC (permalink / raw)
      To: DAN LI; +Cc: LTP list
    
    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
    chrubis@suse.cz
    
    ------------------------------------------------------------------------------
    Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
    Discover the easy way to master current and previous Microsoft technologies
    and advance your career. Get an incredible 1,500+ hours of step-by-step
    tutorial videos with LearnDevNow. Subscribe today and save!
    http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
    _______________________________________________
    Ltp-list mailing list
    Ltp-list@lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/ltp-list
    
    ^ permalink raw reply	[flat|nested] 5+ messages in thread

  • end of thread, other threads:[~2013-09-04 12:02 UTC | newest]
    
    Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <521C4688.9020305@cn.fujitsu.com>
         [not found] ` <521C46FB.7020308@cn.fujitsu.com>
    2013-08-27 12:51   ` [LTP] [PATCH 2/2 v2] quotactl/quotactl02.c: create a case to test basic flags of quotactl(2) chrubis
         [not found]     ` <521D710C.8030609@cn.fujitsu.com>
    2013-08-28  9:38       ` chrubis
         [not found]         ` <521DC969.3090103@cn.fujitsu.com>
    2013-08-28  9:58           ` chrubis
         [not found] ` <521EB988.7000407@cn.fujitsu.com>
    2013-09-02 14:57   ` [LTP] [PATCH 2/2 v3] " chrubis
    2013-09-04 12:03 ` [LTP] [PATCH 1/2 v2] Check if xfs quota is available chrubis
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox