]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rbd-wnbd: update registry settings handling
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 19 Jul 2023 12:32:40 +0000 (12:32 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Sat, 2 Mar 2024 19:04:26 +0000 (19:04 +0000)
commitf48ef5c0d59c25ac8f96e389046fb0a89831b504
treec1a7a1ad48a6dfdbdc2149e43ed1b9cf43abbbc9
parent40d74ea30873f02ecf282f3e88d65875a093c3f0
rbd-wnbd: update registry settings handling

This commit will store the mapping config in the Windows registry
only after initializing the mapping. This ensures that we aren't
replacing the registry settings for already mapped images.

We'll also check if the registry setting was added by us before
cleaning it up.

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