From 751c6a6c9665990e20f6904e591e904bc4f9ca92 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Wed, 13 Jan 2021 15:52:50 +0000 Subject: [PATCH] mds: do not allow the service to run on Windows Some file related flags and types are stubbed on Windows. In order to avoid incorrect behavior, we're going to prevent the service from running on Windows for now. This does not apply to MDS clients. Signed-off-by: Lucian Petrut --- src/mds/MDSDaemon.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/mds/MDSDaemon.cc b/src/mds/MDSDaemon.cc index 6dabecbbf63e6..85a70412f1d20 100644 --- a/src/mds/MDSDaemon.cc +++ b/src/mds/MDSDaemon.cc @@ -462,6 +462,16 @@ void MDSDaemon::clean_up_admin_socket() int MDSDaemon::init() { +#ifdef _WIN32 + // Some file related flags and types are stubbed on Windows. In order to avoid + // incorrect behavior, we're going to prevent the MDS from running on Windows + // until those limitations are addressed. MDS clients, however, are allowed + // to run on Windows. + derr << "The Ceph MDS does not support running on Windows at the moment." + << dendl; + return -ENOSYS; +#endif // _WIN32 + dout(10) << "Dumping misc struct sizes:" << dendl; dout(10) << sizeof(MDSCacheObject) << "\tMDSCacheObject" << dendl; dout(10) << sizeof(CInode) << "\tCInode" << dendl; -- 2.39.5