]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: fix rbd-wnbd device status
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 17 Feb 2021 13:27:11 +0000 (13:27 +0000)
committerJason Dillaman <dillaman@redhat.com>
Tue, 23 Feb 2021 15:08:31 +0000 (10:08 -0500)
commit4f212b93600ade3dc8601ea5d02495bc8ce00687
tree39515fe0760cb29e30c39c09ebcca3297ac54b06
parent53c5b6c0ebc2ebbbc53dbc3d45ab9bbffa1a24ff
rbd: fix rbd-wnbd device status

The "rbd-wnbd show" command will always report the device status
as "inactive". This patch adds the missing check, similar to the
one used by the "list" command.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 94cf22e35217e33a48ab73a018c8b1015b887ca4)
src/tools/rbd_wnbd/rbd_wnbd.cc