Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7092130ybi; Thu, 13 Jun 2019 09:24:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxYWjYnyN6dvZkSs8s6YpNvJSOgHBvTgSg1iXlqI1IuarzSPxAzxxR/On5BMqJdR+6aMSXz X-Received: by 2002:a17:90a:9bca:: with SMTP id b10mr6439644pjw.90.1560443073736; Thu, 13 Jun 2019 09:24:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560443073; cv=none; d=google.com; s=arc-20160816; b=wXYgC9qOwuQ0YPxJpjRAuwbnel+GHj54cmNCgeRH0NcuxNhD5MOzMRhiWilXJ88g/j U10wjnkuLeyE4ZDHfdvhULch23984uyhfmLVCNu8qbOwqxkYTyaSD/t0x2b1C3S8cdOX N1G2IjsvTHuQEhmKa1i8i5MM+eSsOG91Eu3dAkK7JDR0zoKgoJqgJjhSNWiYn7ADyLY3 6VuNFUxscbNy1WdGfQd94QfpfgQaiOpCPt5poHda0yRsVRiPSEwV9qIyRj0W8A71D9NE q7oiEsSqIoNjrETs1Gi6GbHnJBE2yJFrmdMGG7vg1WWmIF+yb0oionTWte1ARCnGMM/q hXqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=mz6GIPKtlkGerT/pt6ZWWFPZs8Zmg5qBehaRfeC+EUo=; b=GpX8FPlfzcEiV9ahsZugwynUDCETxM03nL2dc5kvyrpDB4xNi4+JDJ1HHDlXlelnTB gB91xC3V9xosmHjxXYREtCy+Wy54QBeJ8NrJqZVYn7gwwmMsE+R9wjziFne3G/xZzfl7 UAAPdYdxKC8P1P1cJLxHaAIHXKRlUYWczK3NZLfxXY8/W7LBwOaFkcI7kZiIw4587mrc Mrc4Sy23lJQVE3D+Cwwo/09aTa7mAIhvUqbpTnKUs4dbI2j6hU1I9MhMA1jJ3MJQH9H3 m7xGNEdMe84jnpNvS+1exzvNKDZe0zI7CC+RTpn6XkhA7Rfk+PDo836hFx+9zH12HsNf unlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=EhoeFLRH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b188si25091pfa.8.2019.06.13.09.24.18; Thu, 13 Jun 2019 09:24:33 -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; dkim=pass header.i=@globallogic.com header.s=google header.b=EhoeFLRH; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392024AbfFMQWL (ORCPT + 99 others); Thu, 13 Jun 2019 12:22:11 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:34275 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731137AbfFMQV4 (ORCPT ); Thu, 13 Jun 2019 12:21:56 -0400 Received: by mail-ed1-f67.google.com with SMTP id s49so2264791edb.1 for ; Thu, 13 Jun 2019 09:21:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=globallogic.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mz6GIPKtlkGerT/pt6ZWWFPZs8Zmg5qBehaRfeC+EUo=; b=EhoeFLRHnBhKbWvy9HbsUZYnmSqkMjgbw/4JBVzBmKwtC2BYciZon/sGwYlwxD2ArB 820lhaGvsyDxIQBlup+5VKFfAjqc0UgL0AndVHVEjCUhxyB6MYwWpt9rVeipesbYJm9O 9LctzS/TEIahM6LL9VOCpzIV8wbDeIGYc6LpG/4Ag9cMHwzd7NIdHtF03n3uFJ5oSCsa 3G8seNu4kPRGCTWh5OLMltNpswqlywnH6ctZu426ea1q3OKYycClQ4ZPMg8bCkDfv5pf qrUMZwVvDtNADcRslOs9acphTWeWGkYvfzJ9d44UO3i9kqBf746dXPNN4G9zYO82urgl cWsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mz6GIPKtlkGerT/pt6ZWWFPZs8Zmg5qBehaRfeC+EUo=; b=lMcdXlQcu644DiusZQ19IIczNb+Ys4QgQBkHOeMOiXoM+gUbV4NVzRF0Xp9+EbUpNM EbcTKjrE7LFN8PjT3QR4nsxLvoP3x0ESDDs6blmnihrNu5y6bosKpYD0+yr+sp2JyncP tqvWB87PAuO/F6hV9FZQPOhgQG2EUaFTeUBX7WZ1LZjK+Fqkh7IdFyJkceR+5gB4lmom o6Vs1ClxGxmL7kI/azwfRKcdN4gbMnCntrejKtmJmubqCANtvmEnd3V7y2gIxhryhAgh xW8Il3tuPTP2nBLo85/LyeaL5Gpber+2vCGWTYwkWMW8jQ887Bev+ORUgINnlaMdeCJx +Uzg== X-Gm-Message-State: APjAAAXnfDdLKxp8bRK1XSqEz2A5Cf4KNi3u8ye0z90y0B1FQziSsDhO qW9sYbQJaB8lhcYKFwy5CZpImf0MhfuZuSK1Y/auRf69HUQ= X-Received: by 2002:a17:906:3948:: with SMTP id g8mr45653628eje.168.1560442914546; Thu, 13 Jun 2019 09:21:54 -0700 (PDT) MIME-Version: 1.0 References: <20190612163144.18486-1-roman.stratiienko@globallogic.com> <20190612163144.18486-2-roman.stratiienko@globallogic.com> <20190613135241.aghcrrz7rg2au3bw@MacBook-Pro-91.local> <20190613145535.tdesq3y2xy6ycpw7@MacBook-Pro-91.local> In-Reply-To: <20190613145535.tdesq3y2xy6ycpw7@MacBook-Pro-91.local> From: Roman Stratiienko Date: Thu, 13 Jun 2019 19:21:43 +0300 Message-ID: Subject: Re: [PATCH 2/2] nbd: add support for nbd as root device To: Josef Bacik Cc: linux-kernel@vger.kernel.org, nbd@other.debian.org, Aleksandr Bulyshchenko , linux-block@vger.kernel.org, axboe@kernel.dkn.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > I don't doubt you have a good reason to want it, I'm just not clear on why an > initramfs isn't an option? You have this special kernel with your special > option, and you manage to get these things to boot your special kernel right? > So why is a initramfs with a tiny nbd-client binary in there not an option? > > Also I mean that there are a bunch of different nbd servers out there. We have > our own here at Facebook, qemu has one, IIRC there's a ceph one. They all have > their own connection protocols. The beauty of NBD is that it doesn't have to > know about that part, it just does the block device part, and I'd really rather > leave it that way. Thanks, > > Josef The only reason I prefer embed client into the kernel is to save valuable engineering time creating and supporting custom initramfs, that is not so easy especially on Android-based systems. Taking into account that if using NBD and creating custom initramfs required only for automated testing, many companies would choose manual deployment instead, that is bad for the human progress. I believe that all users of non-standard NBD handshake protocols could continue to use custom nbd-clients. Either you accept this patch or not I would like to pass review from maintainers and other persons that was involved in NBD development, thus making a step closer to get this mainlined in some future. -- Regards, Roman