]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-nbd: introduce new attach and detach commands
authorMykola Golub <mgolub@suse.com>
Sat, 19 Sep 2020 09:06:27 +0000 (10:06 +0100)
committerMykola Golub <mgolub@suse.com>
Wed, 7 Oct 2020 12:26:07 +0000 (13:26 +0100)
commit7d75c1d6b8f281575dca20f0cfd7fe33a375596e
treeac01ef579ae0a5243c6d771fd739d70739fc8a33
parentfef41a222f721545a4a3c36f218d66eacbfd6851
rbd-nbd: introduce new attach and detach commands

The commands allow to restart a daemon without destroying the nbd
device.

Now, if the netlink is used, a dead connection timeout is set on
the nbd device setup, so the device is not immediately released
if the rbd-nbd process terminates without disconnect (unmap).

The attach command just sends terminate signal to the rbd-nbd
process. The detach command starts a new process and connects to
the existing device.

Signed-off-by: Mykola Golub <mgolub@suse.com>
qa/workunits/rbd/rbd-nbd.sh
src/tools/rbd_nbd/rbd-nbd.cc