Received: from eggs.gnu.org ([2001:4830:134:3::10]:50042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsW4V-0005h0-1u for qemu-devel@nongnu.org; Fri, 07 Oct 2016 10:24:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsW4T-0003Us-06 for qemu-devel@nongnu.org; Fri, 07 Oct 2016 10:24:21 -0400 Date: Fri, 7 Oct 2016 10:24:07 -0400 From: Jeff Cody Message-ID: <20161007142407.GB5746@localhost.localdomain> References: <307c86b73ddfd22d56c41ad0ee700a7c070c73f0.1475812005.git.jcody@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/1] block: add gluster ifdef guard checks for SEEK_DATA/SEEK_HOLE support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, ndevos@redhat.com, pkalever@redhat.com On Fri, Oct 07, 2016 at 09:20:54AM -0500, Eric Blake wrote: > On 10/06/2016 10:53 PM, Jeff Cody wrote: > > Add checks to see if the system compiling QEMU has support for > > SEEK_HOLE/SEEK_DATA. If the system does not, we will flag that seek > > data is unsupported in gluster. > >=20 > > Note: this is not a check on whether the gluster server itself suppor= ts > > SEEK_DATA (that is already done during runtime), but rather if the > > compilation environment supports SEEK_DATA. > >=20 > > Signed-off-by: Jeff Cody > > --- > >=20 > > Note: this patch is untested on older systems that do not support SEE= K_DATA > > (e.g.. RHEL6). This won't be pulled into my tree until it is verifie= d. > >=20 >=20 > CC block/gluster.o > block/gluster.c: In function =E2=80=98qemu_gluster_test_seek=E2=80=99: > block/gluster.c:676: warning: unused variable =E2=80=98eof=E2=80=99 > block/gluster.c: In function =E2=80=98find_allocation=E2=80=99: > block/gluster.c:1188: warning: unused variable =E2=80=98offs=E2=80=99 >=20 > but compilation succeeded in spite of the warning. Would be nice to > clean that up for -Werror users. >=20 > Tested-by: Eric Blake > Reviewed-by: Eric Blake > Thanks Eric. I'll clean that up for a v2. Jeff