]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common: verify unix sockets support on Windows
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 20 Aug 2020 10:24:23 +0000 (10:24 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 28 Oct 2020 09:55:20 +0000 (09:55 +0000)
commit948ffd48ab22a60fdfe174c57339c8647dbf7002
tree836db8f3a6d79e7d944fe6fcc95beef5e6ea2bf3
parent42b69e263d450c3d3d9da5600c27062fbcab6e8b
common: verify unix sockets support on Windows

Windows Server 2016 doesn't support unix sockets. We'll
check the Windows version and log a message (but not at
error level) when attempting to initialize the admin socket.

This will prevent the following error from being printed
whenever mapping RBD images:

  AdminSocketConfigObs::init: failed: AdminSocket::bind_and_listen:
  failed to bind the UNIX domain socket to
  'C:/ProgramData/Ceph/out/client.admin.2560.asok':
  (10050) Unknown error

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/common/admin_socket.cc
src/include/util.h