Commit 0dd5f32e authored by Darek Stojaczyk's avatar Darek Stojaczyk Committed by Changpeng Liu
Browse files

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: default avatarDarek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/456299


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarJohn Kariuki <John.K.Kariuki@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent 9fda9814
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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