From 0dd5f32ebe15df3106b6a8e14bfac968c09d41a5 Mon Sep 17 00:00:00 2001 From: Darek Stojaczyk Date: Thu, 30 May 2019 07:34:29 +0200 Subject: [PATCH] doc/compression: fix diagrams They were not interpreted as "code" blocks and looked really broken on spdk.io. Fix it by explicitly wrapping them with code tags (```). Change-Id: Ia880f67124dda6f8c0cb24d7e2e138d9f297958f Signed-off-by: Darek Stojaczyk Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456299 Tested-by: SPDK CI Jenkins Reviewed-by: John Kariuki Reviewed-by: Jim Harris Reviewed-by: Shuhei Matsumoto Reviewed-by: Changpeng Liu --- doc/compression.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/compression.md b/doc/compression.md index 1e4eb79eb..32c076300 100644 --- a/doc/compression.md +++ b/doc/compression.md @@ -88,6 +88,7 @@ In these examples, the value "X" will represent the special value (2^64-1) descr ### Initial Creation +``` +--------------------+ Backing Device | | +--------------------+ @@ -103,6 +104,7 @@ In these examples, the value "X" will represent the special value (2^64-1) descr +---+---+---+---+ Logical Map | X | X | X | X | +---+---+---+---+ +``` ### Write 16KB at Offset 32KB @@ -121,6 +123,7 @@ In these examples, the value "X" will represent the special value (2^64-1) descr store the 16KB of data. * Write the chunk map index to entry 2 in the logical map. +``` +--------------------+ Backing Device |01 | +--------------------+ @@ -136,6 +139,7 @@ In these examples, the value "X" will represent the special value (2^64-1) descr +---+---+---+---+ Logical Map | X | X | 0 | X | +---+---+---+---+ +``` ### Write 4KB at Offset 8KB @@ -153,6 +157,7 @@ In these examples, the value "X" will represent the special value (2^64-1) descr * Write (2, X, X, X) to the chunk map. * Write the chunk map index to entry 0 in the logical map. +``` +--------------------+ Backing Device |012 | +--------------------+ @@ -168,6 +173,7 @@ In these examples, the value "X" will represent the special value (2^64-1) descr +---+---+---+---+ Logical Map | 1 | X | 0 | X | +---+---+---+---+ +``` ### Read 16KB at Offset 16KB @@ -199,6 +205,7 @@ In these examples, the value "X" will represent the special value (2^64-1) descr * Free chunk map 1 back to the free chunk map list. * Free backing IO unit 2 back to the free backing IO unit list. +``` +--------------------+ Backing Device |01 34 | +--------------------+ @@ -214,6 +221,7 @@ In these examples, the value "X" will represent the special value (2^64-1) descr +---+---+---+---+ Logical Map | 2 | X | 0 | X | +---+---+---+---+ +``` ### Operations that span across multiple chunks