Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1410833ybi; Fri, 14 Jun 2019 14:24:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwd40riQzssiCVvM2UoIT9n0wdX6drekJy+d+arYL18EvhpfgyVl9Hl9y1w8wZwQ6Pmgz7k X-Received: by 2002:a63:8249:: with SMTP id w70mr35569218pgd.33.1560547485275; Fri, 14 Jun 2019 14:24:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560547485; cv=none; d=google.com; s=arc-20160816; b=1EMXQ9BRb/Cl7MItk95l8CXZZjT+NminMyeYjdR28ph46HGl3a0OgyQLIzkykGQC71 QAhR9WbxQzuvMD3zJ/5HP5+uMW0OnyL5jBpUVv1yJWhze6kgPO4rMIJ8rz3xXBLmMJcR lvaixbFOSAc1HXzqQcgcohBVFF3lyXdhWPXB5euxiKvHGPrQRA3h9nX2TaWdltS+qyfA hhxSN1k6UouXH9Yw4Re96q318AVlc8jBrpqn3Pg0TH2TKKWCgJ4gdd00As1OssPBwRZb tcqbq/I5dT/5TJKiIptGBn96+iTrefr8wz2oCCzcLtQagaMurftpxHOkeeGf1sH95cgr pqTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PtdVDVnaQFBGm6RaxgRsQNit6l0UlBqxH5dyyDJ8+8A=; b=vAfaarxwqDmXCEab+gL3zfV96vrsSf7hmRdc2EeAvK4ymsphO1kS0BpU3pGwetVlU5 ZHIQKPbdZl9T+4sCPWnRVsysXhAzj+hfsuPgzXhppm1OtVtjaZhbzyP6j3CdJwECCeAl Rhak/MN51JA98bayOSLl/OoZ+zD4JoPmniUMhAyvqwBtSqC3cCx9zDWXqvE9BrRI/PuF Ml+MSr2dh9aMdjracezE7MSoCfdJaPNjXeAejszOvGZr4C3uZhFlknMRs4w0CCYUt3th gsS/E4wnMBnogaOTN3Y8cKnIT04exzeJxZ2I1SdbILEtLQEeKKR3Hz3ytM1qJIKxCUy1 +Q9w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 204si3778348pgh.553.2019.06.14.14.24.30; Fri, 14 Jun 2019 14:24:45 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726525AbfFNVYI (ORCPT + 99 others); Fri, 14 Jun 2019 17:24:08 -0400 Received: from latin.grep.be ([46.4.76.168]:50895 "EHLO latin.grep.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725809AbfFNVYI (ORCPT ); Fri, 14 Jun 2019 17:24:08 -0400 Received: from [105.227.108.147] (helo=gangtai.home.grep.be) by latin.grep.be with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hbtg3-0004xK-TZ; Fri, 14 Jun 2019 23:24:04 +0200 Received: from wouter by gangtai.home.grep.be with local (Exim 4.92) (envelope-from ) id 1hbtfv-0006f9-AY; Fri, 14 Jun 2019 23:23:55 +0200 Date: Fri, 14 Jun 2019 23:23:54 +0200 From: Wouter Verhelst To: Josef Bacik Cc: Roman Stratiienko , linux-kernel@vger.kernel.org, nbd@other.debian.org, Aleksandr Bulyshchenko , linux-block@vger.kernel.org, axboe@kernel.dkn.org Subject: Re: [PATCH 2/2] nbd: add support for nbd as root device Message-ID: <20190614212354.GA24581@grep.be> 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> <20190614103343.GB11340@grep.be> <20190614133802.vg3w3sxpid2fpbp4@MacBook-Pro-91.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190614133802.vg3w3sxpid2fpbp4@MacBook-Pro-91.local> X-Speed: Gates' Law: Every 18 months, the speed of software halves. Organization: none User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 14, 2019 at 09:38:04AM -0400, Josef Bacik wrote: > On Fri, Jun 14, 2019 at 12:33:43PM +0200, Wouter Verhelst wrote: > > On Thu, Jun 13, 2019 at 10:55:36AM -0400, Josef Bacik wrote: > > > 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. > > > > I can't claim to know about the Facebook one of course, but the qemu one > > uses the same handshake protocol as anyone else. The ceph ones that I've > > seen do too (but there are various implementations of that, so...). > > > > Ah, for some reason I remembered Qemu's being distinctly different. > > I suppose if most of the main ones people use are using the same handshake > protocol that makes it more compelling. But there'd have to be a really good > reason why a initramfs isn't viable, and so far I haven't heard a solid reason > that's not an option other than "it's hard and we don't want to do it." Oh, I agree with that. It's not hard at all; I'm aware of two implementations of doing that (I've written an nbd initramfs hook for Debian's initramfs infrastructure, and others have done it for dracut). I'm assuming that buildroot will have an initramfs framework too (and if it doesn't, then that probably just means someone should write it), and then writing an nbd initramfs hook for that framework should be reasonably easy. Also, the proposed initramfs configuration protocol uses the same "nbdroot" name as my Debian initramfs hooks, but in an incompatible way. I'd really like to see that be done differently, before/if it's accepted at all ;-) -- To the thief who stole my anti-depressants: I hope you're happy -- seen somewhere on the Internet on a photo of a billboard