Used recursive bind mounts for volumes.

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


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

Branch: refs/heads/master
Commit: da2dfab8c77ae583eff1a5ce54f23f4b17831976
Parents: 347d51c
Author: Jie Yu <[email protected]>
Authored: Mon Aug 24 14:23:27 2015 -0700
Committer: Jie Yu <[email protected]>
Committed: Wed Aug 26 14:26:29 2015 -0700

----------------------------------------------------------------------
 src/slave/containerizer/isolators/filesystem/linux.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/da2dfab8/src/slave/containerizer/isolators/filesystem/linux.cpp
----------------------------------------------------------------------
diff --git a/src/slave/containerizer/isolators/filesystem/linux.cpp 
b/src/slave/containerizer/isolators/filesystem/linux.cpp
index f7d990d..4ff1c46 100644
--- a/src/slave/containerizer/isolators/filesystem/linux.cpp
+++ b/src/slave/containerizer/isolators/filesystem/linux.cpp
@@ -423,7 +423,7 @@ Try<string> LinuxFilesystemIsolatorProcess::script(
     }
 
     // TODO(jieyu): Consider the mode in the volume.
-    out << "mount -n --bind '" << source << "' '" << target << "'\n";
+    out << "mount -n --rbind '" << source << "' '" << target << "'\n";
   }
 
   return out.str();

Reply via email to