You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by qi...@apache.org on 2017/04/19 13:01:14 UTC

mesos git commit: Fixed the samples in multiple-disk.md.

Repository: mesos
Updated Branches:
  refs/heads/master 4444a1610 -> 253c89483


Fixed the samples in multiple-disk.md.

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


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

Branch: refs/heads/master
Commit: 253c89483cb6e31225a1f55449ff88c676030eec
Parents: 4444a16
Author: Qian Zhang <zh...@gmail.com>
Authored: Wed Apr 19 20:59:06 2017 +0800
Committer: Qian Zhang <zh...@gmail.com>
Committed: Wed Apr 19 20:59:06 2017 +0800

----------------------------------------------------------------------
 docs/multiple-disk.md | 64 +++++++++++++++++++++-------------------------
 1 file changed, 29 insertions(+), 35 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/253c8948/docs/multiple-disk.md
----------------------------------------------------------------------
diff --git a/docs/multiple-disk.md b/docs/multiple-disk.md
index 748d423..5501cc0 100644
--- a/docs/multiple-disk.md
+++ b/docs/multiple-disk.md
@@ -43,15 +43,13 @@ An example resources value for a root disk is shown below. Note that the
 operator could optionally specify a `role` for the disk, which would result in
 [statically reserving](reservation.md) the disk for a single [role](roles.md).
 
-        {
-          "resources" : [
-            {
-              "name" : "disk",
-              "type" : "SCALAR",
-              "scalar" : { "value" : 2048 }
-            }
-          ]
-        }
+        [
+          {
+            "name" : "disk",
+            "type" : "SCALAR",
+            "scalar" : { "value" : 2048 }
+          }
+        ]
 
 ### `Path` disks
 
@@ -77,21 +75,19 @@ An example resources value for a `Path` disk is shown below. Note that the
 operator could optionally specify a `role` for the disk, which would result in
 [statically reserving](reservation.md) the disk for a single [role](roles.md).
 
-        {
-          "resources" : [
-            {
-              "name" : "disk",
-              "type" : "SCALAR",
-              "scalar" : { "value" : 2048 },
-              "disk" : {
-                "source" : {
-                  "type" : "PATH",
-                  "path" : { "root" : "/mnt/data" }
-                }
+        [
+          {
+            "name" : "disk",
+            "type" : "SCALAR",
+            "scalar" : { "value" : 2048 },
+            "disk" : {
+              "source" : {
+                "type" : "PATH",
+                "path" : { "root" : "/mnt/data" }
               }
             }
-          ]
-        }
+          }
+        ]
 
 ### `Mount` disks
 
@@ -117,21 +113,19 @@ An example resources value for a `Mount` disk is shown below. Note that the
 operator could optionally specify a `role` for the disk, which would result in
 [statically reserving](reservation.md) the disk for a single [role](roles.md).
 
-        {
-          "resources" : [
-            {
-              "name" : "disk",
-              "type" : "SCALAR",
-              "scalar" : { "value" : 2048 },
-              "disk" : {
-                "source" : {
-                  "type" : "MOUNT",
-                  "mount" : { "root" : "/mnt/data" }
-                }
+        [
+          {
+            "name" : "disk",
+            "type" : "SCALAR",
+            "scalar" : { "value" : 2048 },
+            "disk" : {
+              "source" : {
+                "type" : "MOUNT",
+                "mount" : { "root" : "/mnt/data" }
               }
             }
-          ]
-        }
+          }
+        ]
 
 #### `Block` disks