]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: improve Windows remap failure handling
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 29 Jan 2021 09:54:10 +0000 (09:54 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 3 Feb 2021 07:20:46 +0000 (07:20 +0000)
commit14b78e45383f77dc18de5d31a36e0220c8cd13ad
tree89bcc6b86f7f0a1494d5d8a6fbf7f0d1172c5bfd
parent8b08fb80284ee1cce62f800db92231f8493756fc
rbd: improve Windows remap failure handling

At the moment, if an image can't be remapped when the centralized
RBD service starts, the service will stop and already started
daemons will continue running.

This change adds a new option: "--remap-failure-fatal". If set,
when an image can't be remmaped, the service stops AND cleans up
the running daemons. By default, an error will be logged and the
service will continue running.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/common/win32/service.cc
src/common/win32/service.h
src/tools/rbd_wnbd/rbd_wnbd.cc
src/tools/rbd_wnbd/rbd_wnbd.h