]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: do not allow the service to run on Windows 34858/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 13 Jan 2021 15:52:50 +0000 (15:52 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 13 Jan 2021 18:08:55 +0000 (18:08 +0000)
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 <lpetrut@cloudbasesolutions.com>
src/mds/MDSDaemon.cc

index 6dabecbbf63e655af219e05ba580a018edff87d0..85a70412f1d2058ba35bee646a9266e6c509fb5d 100644 (file)
@@ -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;