]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd nbd: move server startup code to function
authorMike Christie <mchristi@redhat.com>
Wed, 1 May 2019 01:14:31 +0000 (20:14 -0500)
committerMike Christie <mchristi@redhat.com>
Wed, 5 Jun 2019 04:56:53 +0000 (23:56 -0500)
commit8c44f8532a38e2eabf5841fbc0c04d95149ba185
tree2e1070335a8afc4be453a9df5540ed2da4af5943
parent11c6c61549acdaa5c07a3539e3d8d41594d26050
rbd nbd: move server startup code to function

The netlink connect cmd interface requires the server to be running when
the connect call completes or commands will timeout/fail. This breaks the
server code to 2 functions so we can control when it starts and runs.

Right now it looks odd in that start_server will allocate and return
the server only for it be freed after run, and it is not touched. The
netlink enablement patch at the end will use the returned server.

Signed-off-by: Mike Christie <mchristi@redhat.com>
src/tools/rbd_nbd/rbd-nbd.cc