You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/04/19 21:00:16 UTC
mesos git commit: Ignored volumes with source in linux filesystem
isolator.
Repository: mesos
Updated Branches:
refs/heads/master 148baeda5 -> fc3c67b2f
Ignored volumes with source in linux filesystem isolator.
Review: https://reviews.apache.org/r/45373/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/fc3c67b2
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/fc3c67b2
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/fc3c67b2
Branch: refs/heads/master
Commit: fc3c67b2f326fe7798b416daaf3606377bbc0983
Parents: 148baed
Author: Guangya Liu <gy...@gmail.com>
Authored: Tue Apr 19 10:35:19 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Tue Apr 19 12:00:00 2016 -0700
----------------------------------------------------------------------
src/slave/containerizer/mesos/isolators/filesystem/linux.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/fc3c67b2/src/slave/containerizer/mesos/isolators/filesystem/linux.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/mesos/isolators/filesystem/linux.cpp b/src/slave/containerizer/mesos/isolators/filesystem/linux.cpp
index 9fc7c48..a6e748a 100644
--- a/src/slave/containerizer/mesos/isolators/filesystem/linux.cpp
+++ b/src/slave/containerizer/mesos/isolators/filesystem/linux.cpp
@@ -466,6 +466,14 @@ Try<string> LinuxFilesystemIsolatorProcess::script(
}
foreach (const Volume& volume, executorInfo.container().volumes()) {
+ // NOTE: Volumes with source will be handled by the corresponding
+ // isolators (e.g., docker/volume).
+ if (volume.has_source()) {
+ VLOG(1) << "Ignored a volume with source for container '"
+ << containerId << "'";
+ continue;
+ }
+
if (!volume.has_host_path()) {
return Error("A volume misses 'host_path'");
}