[RFC 0/4] nbd: root device support
From: Markus Pargmann
Date: Tue Jan 13 2015 - 08:45:28 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/