From: Markus Pargmann <mpa@pengutronix.de>
To: Paul Clements <Paul.Clements@steeleye.com>
Cc: nbd-general@lists.sourceforge.net, linux-kernel@vger.kernel.org,
kernel@pengutronix.de, Markus Pargmann <mpa@pengutronix.de>
Subject: [RFC 0/4] nbd: root device support
Date: Tue, 13 Jan 2015 14:44:21 +0100 [thread overview]
Message-ID: <1421156665-27318-1-git-send-email-mpa@pengutronix.de> (raw)
Hi,
This series adds root device support to nbd. The last patch contains a simple
and small implementation of the nbd-client to make the nbd negotiation. After
the negotiation, the socket is bound to nbd0 so the rootfs can be mounted from
nbd0. The connection parameters are passed as module parameter in the following
format:
nbd.root_server=[<SERVER_IP>:]<SERVER_PORT>/<EXPORT_NAME>
Patches 2 and 3 are preparation patches for patch 4 which adds nbd-root.
Patch 4 uses blkdev_get_by_dev() at the moment to get the blockdevice for a
specific nbd_device. However the documentation of blkdev_get_by_dev() states
that the function should not be used. I couldn't find any better way to get
the blockdevice so I would appreciate any suggestions on how to do it correctly.
Best regards,
Markus
Markus Pargmann (4):
nbd: Replace kthread_create with kthread_run
nbd: Split 'DO_IT' into three functions
nbd: Create helper functions for ioctls
nbd: Add support for nbd as root device
drivers/block/nbd.c | 531 ++++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 454 insertions(+), 77 deletions(-)
--
2.1.4
next reply other threads:[~2015-01-13 13:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-13 13:44 Markus Pargmann [this message]
2015-01-13 13:44 ` [RFC 1/4] nbd: Replace kthread_create with kthread_run Markus Pargmann
2015-01-13 13:44 ` [RFC 2/4] nbd: Split 'DO_IT' into three functions Markus Pargmann
2015-01-26 16:16 ` Paul Clements
2015-01-26 16:23 ` Markus Pargmann
2015-01-13 13:44 ` [RFC 3/4] nbd: Create helper functions for ioctls Markus Pargmann
2015-01-28 21:04 ` Paul Clements
2015-01-30 7:54 ` Markus Pargmann
2015-01-13 13:44 ` [RFC 4/4] nbd: Add support for nbd as root device Markus Pargmann
2015-01-20 11:51 ` Markus Pargmann
2015-01-29 23:42 ` [Nbd] " Wouter Verhelst
2015-01-30 8:04 ` Markus Pargmann
2015-01-30 17:30 ` Wouter Verhelst
2015-01-31 12:38 ` Markus Pargmann
[not found] ` <CAECXXi5+VhBeZwZ5aosc+Oc+0bCZbJZTjzYA-QTRrJCjs2NFOw@mail.gmail.com>
2015-01-31 14:43 ` Andreas Klauer
2015-01-31 15:45 ` Markus Pargmann
2015-01-31 15:00 ` Markus Pargmann
2015-01-30 18:10 ` [Nbd] " H. Peter Anvin
2015-01-31 12:08 ` Markus Pargmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1421156665-27318-1-git-send-email-mpa@pengutronix.de \
--to=mpa@pengutronix.de \
--cc=Paul.Clements@steeleye.com \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=nbd-general@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®