Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4EAD5C433F5 for ; Fri, 10 Dec 2021 09:51:47 +0000 (UTC) Received: from localhost ([::1]:43506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvcZ8-0008Cd-0e for qemu-devel@archiver.kernel.org; Fri, 10 Dec 2021 04:51:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:37420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvb51-0004in-VL for qemu-devel@nongnu.org; Fri, 10 Dec 2021 03:16:36 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:42360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvb4z-0000gR-91 for qemu-devel@nongnu.org; Fri, 10 Dec 2021 03:16:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639124191; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BtVKI6bTUkHVwXDC+LLV0tCgs1vUuOx16hxfyLsVNaI=; b=Nn3Rus+UALqzXUfelHyEDhY+25HT1YccK1DUeS4fLErzFXqy/7Deg3nBI5WyIQmykI4rCV LPF9khNjEcsyVBt6Ax8Op0XPaQsHMW8FdkycZjASWrnhEPBwXbnLSuJrcvnhbXHuATiYki 0BvrbDgEhK+wE8MDaPYmUZqvarp/SKI= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-221-19xnA-cSN1Oto6Ij-zpsZQ-1; Fri, 10 Dec 2021 03:16:27 -0500 X-MC-Unique: 19xnA-cSN1Oto6Ij-zpsZQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9EE98802CBB; Fri, 10 Dec 2021 08:16:26 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (unknown [10.39.192.165]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EACB71000180; Fri, 10 Dec 2021 08:16:04 +0000 (UTC) Subject: Re: [Libguestfs] [libnbd PATCH 00/13] libnbd patches for NBD_OPT_EXTENDED_HEADERS To: Eric Blake , libguestfs@redhat.com References: <20211203231307.wmtbw7r72tyzkkax@redhat.com> <20211203231741.3901263-1-eblake@redhat.com> From: Laszlo Ersek Message-ID: <81612544-c1ce-8fc7-5446-c6205b99680b@redhat.com> Date: Fri, 10 Dec 2021 09:16:02 +0100 MIME-Version: 1.0 In-Reply-To: <20211203231741.3901263-1-eblake@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lersek@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=170.10.129.124; envelope-from=lersek@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -33 X-Spam_score: -3.4 X-Spam_bar: --- X-Spam_report: (-3.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.619, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: vsementsov@virtuozzo.com, qemu-devel@nongnu.org, qemu-block@nongnu.org, nbd@other.debian.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 12/04/21 00:17, Eric Blake wrote: > Available here: https://repo.or.cz/libnbd/ericb.git/shortlog/refs/tags/exthdr-v1 > > I also want to do followup patches to teach 'nbdinfo --map' and > 'nbdcopy' to utilize 64-bit extents. > > Eric Blake (13): > golang: Simplify nbd_block_status callback array copy > block_status: Refactor array storage > protocol: Add definitions for extended headers > protocol: Prepare to send 64-bit requests > protocol: Prepare to receive 64-bit replies > protocol: Accept 64-bit holes during pread > generator: Add struct nbd_extent in prep for 64-bit extents > block_status: Track 64-bit extents internally > block_status: Accept 64-bit extents during block status > api: Add [aio_]nbd_block_status_64 > api: Add three functions for controlling extended headers > generator: Actually request extended headers > interop: Add test of 64-bit block status > > lib/internal.h | 31 ++- > lib/nbd-protocol.h | 61 ++++- > generator/API.ml | 237 ++++++++++++++++-- > generator/API.mli | 3 +- > generator/C.ml | 24 +- > generator/GoLang.ml | 35 ++- > generator/Makefile.am | 3 +- > generator/OCaml.ml | 20 +- > generator/Python.ml | 29 ++- > generator/state_machine.ml | 52 +++- > generator/states-issue-command.c | 31 ++- > .../states-newstyle-opt-extended-headers.c | 90 +++++++ > generator/states-newstyle-opt-starttls.c | 10 +- > generator/states-reply-structured.c | 220 ++++++++++++---- > generator/states-reply.c | 31 ++- > lib/handle.c | 27 +- > lib/rw.c | 105 +++++++- > python/t/110-defaults.py | 3 +- > python/t/120-set-non-defaults.py | 4 +- > python/t/465-block-status-64.py | 56 +++++ > ocaml/helpers.c | 22 +- > ocaml/nbd-c.h | 3 +- > ocaml/tests/Makefile.am | 5 +- > ocaml/tests/test_110_defaults.ml | 4 +- > ocaml/tests/test_120_set_non_defaults.ml | 5 +- > ocaml/tests/test_465_block_status_64.ml | 58 +++++ > tests/meta-base-allocation.c | 111 +++++++- > interop/Makefile.am | 6 + > interop/large-status.c | 186 ++++++++++++++ > interop/large-status.sh | 49 ++++ > .gitignore | 1 + > golang/Makefile.am | 3 +- > golang/handle.go | 6 + > golang/libnbd_110_defaults_test.go | 8 + > golang/libnbd_120_set_non_defaults_test.go | 12 + > golang/libnbd_465_block_status_64_test.go | 119 +++++++++ > 36 files changed, 1511 insertions(+), 159 deletions(-) > create mode 100644 generator/states-newstyle-opt-extended-headers.c > create mode 100644 python/t/465-block-status-64.py > create mode 100644 ocaml/tests/test_465_block_status_64.ml > create mode 100644 interop/large-status.c > create mode 100755 interop/large-status.sh > create mode 100644 golang/libnbd_465_block_status_64_test.go > I figured I should slowly / gradually review this series, and as a *pre-requisite* for it, first apply the spec patch, and then read through the spec with something like $ git show --color -U1000 In other words, read the whole spec, just highlight the new additions. Now, I see Vladimir has made several comments on the spec patch; will those comments necessitate a respin of the libnbd series? If so, how intrusive are the changes going to be? I'm hesitant to start my review if significant changes are already foreseen. Thanks, Laszlo