]> 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>
Wed, 3 Feb 2021 07:18:04 +0000 (07:18 +0000)
commit2455a907e66e706e2be4f91322b8f4cdd59fc844
tree73e698e1e544c3ddb45f3cbffd8dad467ed93507
parent6dc45eea209e1d3b2262a5d8d04d145adc7708a6
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>
src/common/win32/registry.cc
src/common/win32/registry.h
src/tools/rbd_wnbd/rbd_wnbd.cc
src/tools/rbd_wnbd/rbd_wnbd.h