]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: add image map timeouts on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 28 Jan 2021 14:08:29 +0000 (14:08 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 5 Feb 2021 07:52:03 +0000 (07:52 +0000)
commitde113141ad23ccc46730dcb3d4802b4a125aa6d3
tree4bc8b20529edfc2b6d446b26519952c2affae792
parentf28ad132c12472ec434e83f25d7416f2bc2e8793
rbd: add image map timeouts on Windows

This change adds configurable timeouts used when starting the centralized RBD
service and mapping images.

This change also fixes an issue where the service would wait indefinitely for
a failed mapping. This issue was caused by the fact that multiple child
processes were inheriting pipe handles.

Note that we can't use timeouts with Windows anonymous pipes, which is why
we're going to use unique named pipes.

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