Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7026997ybi; Thu, 13 Jun 2019 08:21:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyeJlzuWOLXBp4sJlFq92cPGAkWrqhY+um4gePNJbSGzLEy4eZUQOmNfReEdEFR7S3V1qw X-Received: by 2002:a17:90a:258b:: with SMTP id k11mr5929293pje.110.1560439288020; Thu, 13 Jun 2019 08:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560439288; cv=none; d=google.com; s=arc-20160816; b=QRvWr16IPT/iXbaW3sgFUoMhAqBxE6vG6WbcdFfmyE301ElIeHN2fXCXdG9FpGoGZ8 viXFDDYx8qYGB4XEy03WtH/xBqT9xaitvHgTdow8eCwt5y2KeqHNxMD5MQaGmmJrydPM m4x8ssn3yjpqvNBxWr3sHp5ZPoQbZ1Y77q1WF2gQrwBUlDPLEXMvCSqjRWXArw3G2JCZ yo3+rfgP2YSQ3gZE5aVC3RBbTiO0kJYdeiLNei0eGjV/+Rfve76mOkBfBCmFwniRRQV+ df5qHs4liHyCpn7zqWOFJohCp4dCZMYr45fyIrq3XIMe5lTzUIroPZY8HrCXLnAjt+Jt G1ZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:organization:autocrypt:openpgp:from:references:to :subject; bh=BBDINi7TT3oGQGkF9xjzKE2DQmAHbfdgmulFU1D9Ivc=; b=Um/dOvIv4dErqpNxKd1wDRzUQX8YnIqiCr3hCq6wXIhCFLqavo8tGfVE/dcZNxRkCs Y94KQSORl/O5nmAoMULnX3ay2i4DZJGDYLRstAhfCCTSP9pyG0xehkXmbVcw0qERGNEe UhE7LGpiQtM7q+CQbwW0ApuZE2Z9pa9+d4fHCytmwcrMku8BVfnB5wzrcYU02Ga85PZl IHYjF2d41gfnE7NRwD6aCqTKaw+wP1vGu8XWKILwi1VdG9MOyp+nWBW3WgyPN+musk2Y owVgHn7IaumN0NYZ0eW3fYwanASzGgvhR3v1llZujRwmMELmnszq50t/kBUQnmFWn03j 2QzQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f32si28461pjg.42.2019.06.13.08.21.11; Thu, 13 Jun 2019 08:21:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732668AbfFMPSx (ORCPT + 99 others); Thu, 13 Jun 2019 11:18:53 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54626 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732144AbfFMNDB (ORCPT ); Thu, 13 Jun 2019 09:03:01 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3B21DCA36F; Thu, 13 Jun 2019 13:03:00 +0000 (UTC) Received: from [10.3.116.85] (ovpn-116-85.phx2.redhat.com [10.3.116.85]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D484E541F2; Thu, 13 Jun 2019 13:02:57 +0000 (UTC) Subject: Re: [PATCH 2/2] nbd: add support for nbd as root device To: roman.stratiienko@globallogic.com, linux-kernel@vger.kernel.org, josef@toxicpanda.com, nbd@other.debian.org, A.Bulyshchenko@globallogic.com, linux-block@vger.kernel.org, axboe@kernel.dkn.org, "Richard W.M. Jones" References: <20190612163144.18486-1-roman.stratiienko@globallogic.com> <20190612163144.18486-2-roman.stratiienko@globallogic.com> From: Eric Blake Openpgp: preference=signencrypt Autocrypt: addr=eblake@redhat.com; keydata= xsBNBEvHyWwBCACw7DwsQIh0kAbUXyqhfiKAKOTVu6OiMGffw2w90Ggrp4bdVKmCaEXlrVLU xphBM8mb+wsFkU+pq9YR621WXo9REYVIl0FxKeQo9dyQBZ/XvmUMka4NOmHtFg74nvkpJFCD TUNzmqfcjdKhfFV0d7P/ixKQeZr2WP1xMcjmAQY5YvQ2lUoHP43m8TtpB1LkjyYBCodd+LkV GmCx2Bop1LSblbvbrOm2bKpZdBPjncRNob73eTpIXEutvEaHH72LzpzksfcKM+M18cyRH+nP sAd98xIbVjm3Jm4k4d5oQyE2HwOur+trk2EcxTgdp17QapuWPwMfhaNq3runaX7x34zhABEB AAHNHkVyaWMgQmxha2UgPGVibGFrZUByZWRoYXQuY29tPsLAegQTAQgAJAIbAwULCQgHAwUV CgkICwUWAgMBAAIeAQIXgAUCS8fL9QIZAQAKCRCnoWtKJSdDahBHCACbl/5FGkUqJ89GAjeX RjpAeJtdKhujir0iS4CMSIng7fCiGZ0fNJCpL5RpViSo03Q7l37ss+No+dJI8KtAp6ID+PMz wTJe5Egtv/KGUKSDvOLYJ9WIIbftEObekP+GBpWP2+KbpADsc7EsNd70sYxExD3liwVJYqLc Rw7so1PEIFp+Ni9A1DrBR5NaJBnno2PHzHPTS9nmZVYm/4I32qkLXOcdX0XElO8VPDoVobG6 gELf4v/vIImdmxLh/w5WctUpBhWWIfQDvSOW2VZDOihm7pzhQodr3QP/GDLfpK6wI7exeu3P pfPtqwa06s1pae3ad13mZGzkBdNKs1HEm8x6zsBNBEvHyWwBCADGkMFzFjmmyqAEn5D+Mt4P zPdO8NatsDw8Qit3Rmzu+kUygxyYbz52ZO40WUu7EgQ5kDTOeRPnTOd7awWDQcl1gGBXgrkR pAlQ0l0ReO57Q0eglFydLMi5bkwYhfY+TwDPMh3aOP5qBXkm4qIYSsxb8A+i00P72AqFb9Q7 3weG/flxSPApLYQE5qWGSXjOkXJv42NGS6o6gd4RmD6Ap5e8ACo1lSMPfTpGzXlt4aRkBfvb NCfNsQikLZzFYDLbQgKBA33BDeV6vNJ9Cj0SgEGOkYyed4I6AbU0kIy1hHAm1r6+sAnEdIKj cHi3xWH/UPrZW5flM8Kqo14OTDkI9EtlABEBAAHCwF8EGAEIAAkFAkvHyWwCGwwACgkQp6Fr SiUnQ2q03wgAmRFGDeXzc58NX0NrDijUu0zx3Lns/qZ9VrkSWbNZBFjpWKaeL1fdVeE4TDGm I5mRRIsStjQzc2R9b+2VBUhlAqY1nAiBDv0Qnt+9cLiuEICeUwlyl42YdwpmY0ELcy5+u6wz mK/jxrYOpzXKDwLq5k4X+hmGuSNWWAN3gHiJqmJZPkhFPUIozZUCeEc76pS/IUN72NfprZmF Dp6/QDjDFtfS39bHSWXKVZUbqaMPqlj/z6Ugk027/3GUjHHr8WkeL1ezWepYDY7WSoXwfoAL 2UXYsMAr/uUncSKlfjvArhsej0S4zbqim2ZY6S8aRWw94J3bSvJR+Nwbs34GPTD4Pg== Organization: Red Hat, Inc. Message-ID: Date: Thu, 13 Jun 2019 08:02:56 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190612163144.18486-2-roman.stratiienko@globallogic.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9Icx9ItsU53ORwiANl09EUUC5IOzpGhUD" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 13 Jun 2019 13:03:01 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --9Icx9ItsU53ORwiANl09EUUC5IOzpGhUD Content-Type: multipart/mixed; boundary="GcPkFI5vKHhM5L3R0laXCr11kPXSMamS8"; protected-headers="v1" From: Eric Blake To: roman.stratiienko@globallogic.com, linux-kernel@vger.kernel.org, josef@toxicpanda.com, nbd@other.debian.org, A.Bulyshchenko@globallogic.com, linux-block@vger.kernel.org, axboe@kernel.dkn.org, "Richard W.M. Jones" Message-ID: Subject: Re: [PATCH 2/2] nbd: add support for nbd as root device References: <20190612163144.18486-1-roman.stratiienko@globallogic.com> <20190612163144.18486-2-roman.stratiienko@globallogic.com> In-Reply-To: <20190612163144.18486-2-roman.stratiienko@globallogic.com> --GcPkFI5vKHhM5L3R0laXCr11kPXSMamS8 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 6/12/19 11:31 AM, roman.stratiienko@globallogic.com wrote: > From: Roman Stratiienko >=20 > Adding support to nbd to use it as a root device. This code essentially= > provides a minimal nbd-client implementation within the kernel. It open= s > a socket and makes the negotiation with the server. Afterwards it passe= s > the socket to the normal nbd-code to handle the connection. >=20 > The arguments for the server are passed via kernel command line. > The kernel command line has the format > 'nbdroot=3D[:]/'. Did you intend for nbdroot=3D1234 to connect to port 1234 or to server 1234 port 10809? Is an export name mandatory even when it is the empty string, in which case, is the / character mandatory? Maybe this would be better written as: [[: