From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759510AbbA2X6B (ORCPT ); Thu, 29 Jan 2015 18:58:01 -0500 Received: from barbershop.grep.be ([89.106.240.122]:55332 "EHLO barbershop.grep.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759441AbbA2X57 (ORCPT ); Thu, 29 Jan 2015 18:57:59 -0500 Date: Fri, 30 Jan 2015 00:42:54 +0100 From: Wouter Verhelst To: Markus Pargmann Cc: Paul Clements , nbd-general@lists.sourceforge.net, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [Nbd] [RFC 4/4] nbd: Add support for nbd as root device Message-ID: <20150129234254.GD15853@grep.be> References: <1421156665-27318-1-git-send-email-mpa@pengutronix.de> <1421156665-27318-5-git-send-email-mpa@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1421156665-27318-5-git-send-email-mpa@pengutronix.de> X-Speed: Gates' Law: Every 18 months, the speed of software halves. Organization: none User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 13, 2015 at 02:44:25PM +0100, Markus Pargmann wrote: > Adding support to nbd to use it as a root device. This code essentially > provides a minimal nbd-client implementation within the kernel. It opens > a socket and makes the negotiation with the server. Afterwards it passes > the socket to the normal nbd-code to handle the connection. > > The arguments for the server are passed via module parameter. The > module parameter has the format > '[:]/'. > SERVER_IP is optional. If it is not available it will use the > root_server_addr transmitted through DHCP. > > Based on those arguments, the connection to the server is established > and is connected to the nbd0 device. The rootdevice therefore is > root=/dev/nbd0. Not that I'm opposed to this, but you do realize that doing nbd-client from initramfs or similar is possible, right? Most initramfs implementations these days support it. [...] -- It is easy to love a country that is famous for chocolate and beer -- Barack Obama, speaking in Brussels, Belgium, 2014-03-26