From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q99MUwSX116967 for ; Tue, 9 Oct 2012 17:30:58 -0500 Received: from mail.sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id xszaRIiFUpi4Ubgx for ; Tue, 09 Oct 2012 15:32:29 -0700 (PDT) Message-ID: <5074A5FE.50101@sandeen.net> Date: Tue, 09 Oct 2012 17:32:30 -0500 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: [PATCH 2/2] xfs_io: configure tests for preadv/pwritev & sync_file_range References: <50749EE2.6070408@redhat.com> <5074A05A.6000709@sandeen.net> <20121009222806.GS23644@dastard> In-Reply-To: <20121009222806.GS23644@dastard> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Dave Chinner Cc: xfs-oss On 10/9/12 5:28 PM, Dave Chinner wrote: > On Tue, Oct 09, 2012 at 05:08:26PM -0500, Eric Sandeen wrote: >> On older systems we may not have preadv/pwritev and/or >> sync_file_range. >> >> Add the configure magic, and stub out the code >> where needed. >> >> (sync_file_range just needed a better test; preadv/pwritev >> took a little more rearranging) >> >> And fix a couple typos ("numberic") while we're at it. >> >> Signed-off-by: Eric Sandeen > > Looks fine, though the "HAVE_PREADV" in the pwritev case is a bit > wierd. Perhaps doing this: > >> diff --git a/include/builddefs.in b/include/builddefs.in >> index 81ebfcd..4a0e910 100644 >> --- a/include/builddefs.in >> +++ b/include/builddefs.in >> @@ -101,6 +101,8 @@ HAVE_GETMNTENT = @have_getmntent@ >> HAVE_GETMNTINFO = @have_getmntinfo@ >> HAVE_FALLOCATE = @have_fallocate@ >> HAVE_FIEMAP = @have_fiemap@ >> +HAVE_PREADV = @have_preadv@ > > HAVE_PWRITEV = @have_preadv@ > > Would reduce that wierdness a bit when looking at the pwritev > code.... Yeah I was a little unhappy w/ that. But I think then we'd also need: +ifeq ($(HAVE_PWRITEV),yes) +LCFLAGS += -DHAVE_PWRITEV +endif and at some point we might run out of room on the cmdline ;) Could change it to HAVE_PREADWRITEV or something ... -Eric > Otherwise everything else looks ok. > > Cheers, > > Dave. > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs