Skip to content

Commit

Permalink
storage: tweak docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
patniemeyer committed Oct 21, 2023
1 parent 2feff13 commit a9cd509
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions str-twincoding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ files, decoding files with erasures, and optimally recovering lost shards.

See `twin_coding.py` for an explanation of the algorithm, example code, and a link to the original paper.


## Installation

```
Expand Down Expand Up @@ -59,8 +60,8 @@ dd if=/dev/urandom of="file_1KB.dat" bs=1K count=1
cmp -s "file_1KB.dat" "recovered.dat" && echo "Passed" || echo "Failed"
# Generate shard recovery files: Using k (3) type 0 node sources (helper nodes), generate recovery
# files for restoration of node type 1 index 0.
# Generate shard recovery files for restoration of node type 1 index 0, using 3 (k) type 0
# node sources (helper nodes),
for helper_node in 0 1 2
do
./storage.sh generate_recovery_file \
Expand Down
4 changes: 2 additions & 2 deletions str-twincoding/examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ dd if=/dev/urandom of="file_1KB.dat" bs=1K count=1
cmp -s "file_1KB.dat" "recovered.dat" && echo "Passed" || echo "Failed"


# Generate shard recovery files: Using k (3) type 0 node sources (helper nodes), generate recovery
# files for restoration of node type 1 index 0.
# Generate shard recovery files for restoration of node type 1 index 0, using 3 (k) type 0
# node sources (helper nodes),
for helper_node in 0 1 2
do
./storage.sh generate_recovery_file \
Expand Down

0 comments on commit a9cd509

Please sign in to comment.