[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: One new nbd-runner project to support the Gluster/Ceph/Azure, etc



Let me see if I understand what the nbd-runner project is.  I'll try
to explain it, and see if I get this right ...

You have a front end command line tool (nbd-cli), which has various
commands for creating NBD-backed loop devices (/dev/nbdX).

The front end tool does not implement the loop mounts itself, but
instead talks over a socket-based RPC to a server which does the loop
mounting.  Also this server (currently) does the processing of NBD
commands from the kernel.

Assuming that's a correct description of the program, I'm saying that
instead of implementing an NBD server yourself, use an established NBD
server.  qemu-nbd already supports Gluster, Ceph and iSCSI so could be
used immediately.  nbdkit could support those if you wrote the
additional plugins, which is not difficult.

These existing servers already support far more of the NBD protocol
than you have implemented and are already battle-tested both with the
Linux kernel NBD client code and (for qemu-nbd) with Gluster, Ceph and
iSCSI.

Obviously this is free software and you're free to do what you want,
but this would be what I would do, and would seem like it saves you a
lot of effort in the long term ...

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org


Reply to: