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/11/09 21:05:50 UTC

[2/3] mesos git commit: Updated provisioner utility headers.

Updated provisioner utility headers.

This fixes the headers in the provisioner utility.  Previously, the
headers did not contain includes for any of the classes used in the
file, which is stylistically aimed for.

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


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

Branch: refs/heads/master
Commit: 471c0928e479dbc0a415b3d32e7e34d32cdd1bd9
Parents: 40058f9
Author: Joseph Wu <jo...@mesosphere.io>
Authored: Wed Nov 9 11:17:24 2016 -0800
Committer: Joseph Wu <jo...@apache.org>
Committed: Wed Nov 9 11:22:10 2016 -0800

----------------------------------------------------------------------
 .../containerizer/mesos/provisioner/utils.cpp   | 23 ++++++++++++++++++++
 .../containerizer/mesos/provisioner/utils.hpp   |  5 +++--
 2 files changed, 26 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/471c0928/src/slave/containerizer/mesos/provisioner/utils.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/provisioner/utils.cpp b/src/slave/containerizer/mesos/provisioner/utils.cpp
index 340cf48..7fd7315 100644
--- a/src/slave/containerizer/mesos/provisioner/utils.cpp
+++ b/src/slave/containerizer/mesos/provisioner/utils.cpp
@@ -14,6 +14,29 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
+
+#ifndef __WINDOWS__
+#include <fts.h>
+
+#include <sys/stat.h>
+#endif // __WINDOWS__
+
+#include <string>
+#include <string.h>
+
+#include <mesos/docker/spec.hpp>
+
+#include <stout/error.hpp>
+#include <stout/nothing.hpp>
+#include <stout/os.hpp>
+#include <stout/path.hpp>
+#include <stout/strings.hpp>
+#include <stout/try.hpp>
+
+#include <stout/os/rm.hpp>
+#include <stout/os/strerror.hpp>
+#include <stout/os/xattr.hpp>
+
 #include "slave/containerizer/mesos/provisioner/utils.hpp"
 
 using std::string;

http://git-wip-us.apache.org/repos/asf/mesos/blob/471c0928/src/slave/containerizer/mesos/provisioner/utils.hpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/provisioner/utils.hpp b/src/slave/containerizer/mesos/provisioner/utils.hpp
index 4efce0e..e10bc91 100644
--- a/src/slave/containerizer/mesos/provisioner/utils.hpp
+++ b/src/slave/containerizer/mesos/provisioner/utils.hpp
@@ -17,9 +17,10 @@
 #ifndef __MESOS_CONTAINERIZER_UTILS_HPP__
 #define __MESOS_CONTAINERIZER_UTILS_HPP__
 
-#include <stout/os.hpp>
+#include <string>
 
-#include <mesos/docker/spec.hpp>
+#include <stout/nothing.hpp>
+#include <stout/try.hpp>
 
 namespace mesos {
 namespace internal {