From cb03f81b61f628f6c46d9e3492a5556efdd31256 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 11 Jul 2015 01:47:14 +0800 Subject: [PATCH] doc/erasure-code: fix couple typos Signed-off-by: Kefu Chai --- doc/rados/operations/erasure-code-lrc.rst | 10 +++++----- doc/rados/operations/erasure-code.rst | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/rados/operations/erasure-code-lrc.rst b/doc/rados/operations/erasure-code-lrc.rst index 112abfa868b..3c9b269185a 100644 --- a/doc/rados/operations/erasure-code-lrc.rst +++ b/doc/rados/operations/erasure-code-lrc.rst @@ -168,7 +168,7 @@ For instance, when three coding steps are described as:: where *c* are coding chunks calculated from the data chunks *D*, the loss of chunk *7* can be recovered with the last four chunks. And the -loss of chun *2* chunk can be recovered with the first four +loss of chunk *2* chunk can be recovered with the first four chunks. Erasure code profile examples using low level configuration @@ -272,7 +272,7 @@ are applied in order. For instance, if a 4K object is encoded, it will first go thru *step 1* and be divided in four 1K chunks (the four uppercase D). They are stored in the chunks 2, 3, 6 and 7, in order. From these, two coding chunks are calculated (the two lowercase -c). The coding chunks are stored in the chunks 1 and 4, respectively. +c). The coding chunks are stored in the chunks 1 and 5, respectively. The *step 2* re-uses the content created by *step 1* in a similar fashion and stores a single coding chunk *c* at position 0. The last four @@ -300,7 +300,7 @@ The coding chunk from *step 2*, stored in chunk *0*, allows it to recover the content of chunk *2*. There are no more chunks to recover and the process stops, without considering *step 1*. -Recovering chunk *2* required reading chunks *0, 1, 3* and writing +Recovering chunk *2* requires reading chunks *0, 1, 3* and writing back chunk *2*. If chunk *2, 3, 6* are lost:: @@ -311,7 +311,7 @@ If chunk *2, 3, 6* are lost:: step 2 cD __ _ step 3 __ cD D -The *step 3* can recover the conten of chunk *6*:: +The *step 3* can recover the content of chunk *6*:: chunk nr 01234567 @@ -355,6 +355,6 @@ For instance:: will create a ruleset that will select two crush buckets of type *rack* and for each of them choose four OSDs, each of them located in -different bucket of type *host*. +different buckets of type *host*. The ruleset can also be manually crafted for finer control. diff --git a/doc/rados/operations/erasure-code.rst b/doc/rados/operations/erasure-code.rst index 81d5e7b5985..b55cd631213 100644 --- a/doc/rados/operations/erasure-code.rst +++ b/doc/rados/operations/erasure-code.rst @@ -55,7 +55,7 @@ the following profile can be defined:: k=3 \ m=2 \ ruleset-failure-domain=rack - $ ceph osd pool create ecpool 12 12 erasure *myprofile* + $ ceph osd pool create ecpool 12 12 erasure myprofile $ echo ABCDEFGHI | rados --pool ecpool put NYAN - $ rados --pool ecpool get NYAN - ABCDEFGHI -- 2.47.3