]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: allow non persistent Windows mappings
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 27 Jan 2021 09:06:19 +0000 (09:06 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 5 Feb 2021 07:52:03 +0000 (07:52 +0000)
commit4d80432924656f725ccfcd5481aebb30b4041b43
treecc5bc628e5d451f70d7794dd50878c8d2e5b7875
parent8fbcd85a1dcff43c609be5e59f17564b026f1549
rbd: allow non persistent Windows mappings

At the moment, all Windows RBD mappings are persistent, being
recreated when the Ceph service starts.

This change adds the "--non-persistent" flag to allow skipping
certain images.

Note that even for non-persistent mappings, we're still storing
data in the Windows registry, allowing us to retrieve image
details such as the rbd pool as well as the admin socket path.

When the daemons stop or the Ceph service starts, non-persistent
entries are cleaned up from the Windows registry.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit 2455a907e66e706e2be4f91322b8f4cdd59fc844)
src/common/win32/registry.cc
src/common/win32/registry.h
src/tools/rbd_wnbd/rbd_wnbd.cc
src/tools/rbd_wnbd/rbd_wnbd.h