From 8c433747cde4aaa0839fba7c6693609215214f01 Mon Sep 17 00:00:00 2001 From: zooko Date: Tue, 2 Oct 2007 01:10:32 +0530 Subject: [PATCH] zfec: add warning about changed share header in zfec v1.1 darcs-hash:93fac0833f5926037ab3bf56b7776d160e346246 --- zfec/README.txt | 6 +++++- zfec/zfec/filefec.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/zfec/README.txt b/zfec/README.txt index 2bd5763..b3b16e5 100644 --- a/zfec/README.txt +++ b/zfec/README.txt @@ -96,6 +96,10 @@ input to the encoding step. * Command-Line Tool +NOTE: the format of the sharefiles was changed in zfec v1.1 to allow K == 1 +and K == M. This change of the format of sharefiles means that zfec >= v1.1 +cannot read sharefiles produced by zfec < v1.1. + The bin/ directory contains two Unix-style, command-line tools "zfec" and "zunfec". Execute "zfec --help" or "zunfec --help" for usage instructions. @@ -233,5 +237,5 @@ releasing it under a Free Software licence. Enjoy! Zooko Wilcox-O'Hearn -2007-04-27 +2007-10-01 Boulder, Colorado diff --git a/zfec/zfec/filefec.py b/zfec/zfec/filefec.py index 35d64c5..7e502a7 100644 --- a/zfec/zfec/filefec.py +++ b/zfec/zfec/filefec.py @@ -28,7 +28,7 @@ def _build_header(m, k, pad, sh): @param pad: the number of bytes of padding added to the file before encoding; 0 <= pad < k @param sh: the shnum of this share; 0 <= k < m - @return: a string (which is hopefully short) encoding m, k, sh, and pad + @return: a compressed string encoding m, k, pad, and sh """ assert m >= 1 assert m <= 2**8 -- 2.45.2