From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id q99MuPQs120356 for ; Tue, 9 Oct 2012 17:56:25 -0500 Received: from mail.sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id 55UYS8z6vMNV9Bpx for ; Tue, 09 Oct 2012 15:57:55 -0700 (PDT) Message-ID: <5074ABF4.2000807@sandeen.net> Date: Tue, 09 Oct 2012 17:57:56 -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> <5074A5FE.50101@sandeen.net> <20121009225620.GU23644@dastard> In-Reply-To: <20121009225620.GU23644@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:56 PM, Dave Chinner wrote: > On Tue, Oct 09, 2012 at 05:32:30PM -0500, Eric Sandeen wrote: >> 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 > > True. > >> and at some point we might run out of room on the cmdline ;) > > Unlikely ;) > >> Could change it to HAVE_PREADWRITEV or something ... > > HAVE_VECTORED_IO? Thought about that but we already have readv/writev, just not *P*readv/writev. I can just add MOAR FLAGS if that looks better to you. ;) (or HAVE_PVECTORED_IO?) ;) -Eric > Cheers, > > Dave. > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs