All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 0/4] nbd: root device support
@ 2015-01-13 13:44 Markus Pargmann
  2015-01-13 13:44 ` [RFC 1/4] nbd: Replace kthread_create with kthread_run Markus Pargmann
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Markus Pargmann @ 2015-01-13 13:44 UTC (permalink / raw)
  To: Paul Clements; +Cc: nbd-general, linux-kernel, kernel, Markus Pargmann

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


^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2015-01-31 15:45 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-13 13:44 [RFC 0/4] nbd: root device support Markus Pargmann
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.