You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2016/12/20 22:28:58 UTC

[4/5] mesos git commit: Windows: Changed `MESOS_SANDBOX` to a Windows-style path.

Windows: Changed `MESOS_SANDBOX` to a Windows-style path.

This changes the default value for the `MESOS_SANDBOX` environment
variable passed to containers, on Windows, to a Windows-style path.
Because root filesystem changes are not supported (yet) on the Mesos
containerizer, this only affects the Docker containerizer.

Review: https://reviews.apache.org/r/53719/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/704654c4
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/704654c4
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/704654c4

Branch: refs/heads/master
Commit: 704654c423a3859951d15eb42aab3e79fe1a9cf6
Parents: 8de635c
Author: Daniel Pravat <dp...@outlook.com>
Authored: Tue Dec 20 13:20:59 2016 -0800
Committer: Joseph Wu <jo...@apache.org>
Committed: Tue Dec 20 13:27:03 2016 -0800

----------------------------------------------------------------------
 src/slave/flags.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/704654c4/src/slave/flags.cpp
----------------------------------------------------------------------
diff --git a/src/slave/flags.cpp b/src/slave/flags.cpp
index 5fb91fb..1eccea9 100644
--- a/src/slave/flags.cpp
+++ b/src/slave/flags.cpp
@@ -659,7 +659,12 @@ mesos::internal::slave::Flags::Flags()
       "sandbox_directory",
       "The absolute path for the directory in the container where the\n"
       "sandbox is mapped to.\n",
-      "/mnt/mesos/sandbox");
+#ifndef __WINDOWS__
+      "/mnt/mesos/sandbox"
+#else
+      "C:\\mesos\\sandbox"
+#endif // __WINDOWS__
+      );
 
   add(&Flags::default_container_info,
       "default_container_info",