Received: from eggs.gnu.org ([2001:4830:134:3::10]:47167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMWrU-0007EA-9H for qemu-devel@nongnu.org; Wed, 27 Aug 2014 02:37:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMWrN-0001um-0y for qemu-devel@nongnu.org; Wed, 27 Aug 2014 02:37:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24254) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMWrM-0001t9-OI for qemu-devel@nongnu.org; Wed, 27 Aug 2014 02:37:32 -0400 From: Markus Armbruster References: <1409086088-20910-1-git-send-email-rjones@redhat.com> <1409086088-20910-2-git-send-email-rjones@redhat.com> <20140827023845.GA2977@T430.nay.redhat.com> <53FD491A.9060303@redhat.com> Date: Wed, 27 Aug 2014 08:37:22 +0200 In-Reply-To: <53FD491A.9060303@redhat.com> (Eric Blake's message of "Tue, 26 Aug 2014 20:57:30 -0600") Message-ID: <87mwaqfnfh.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] curl: Add override_accept_ranges flag to force sending range requests. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: kwolf@redhat.com, Fam Zheng , "Richard W.M. Jones" , qemu-devel@nongnu.org, stefanha@redhat.com, danielhb@linux.vnet.ibm.com Eric Blake writes: > On 08/26/2014 08:38 PM, Fam Zheng wrote: >> On Tue, 08/26 21:48, Richard W.M. Jones wrote: >>> Some servers (notably VMware ESX) accept range requests, but don't >>> send back the Accept-Ranges: bytes header in their initial response. >>> >>> For these servers you can set override_accept_ranges to 'on' which >>> forces this block driver to send range requests anyway. > > Is this a case where we should be naming with dashes instead of > underscores, as in override-accept-ranges? Yes. >>> @@ -489,6 +490,11 @@ static QemuOptsList runtime_opts = { >>> .type = QEMU_OPT_BOOL, >>> .help = "Verify SSL certificate" >>> }, >>> + { >>> + .name = CURL_BLOCK_OPT_OVERRIDE_ACCEPT_RANGES, >>> + .type = QEMU_OPT_BOOL, >>> + .help = "Server accepts range requests" >>> + }, > > It would be nice for someone to finally port the QAPI counterpart > (BlockdevOptions) so that curl devices can be hotplugged via > blockdev-add. But I guess that's a separate patch. Yes again.