[zfec-dev] zunfec behavior for handling error

Jake Lee gnozil at gmail.com
Sun Feb 15 19:50:28 PST 2009


I test zfec/zunfec by below commands:

$ dd if=/deve/random of=bigfile bs=1M count=10
$ zfec -m 5 -k 3 bigfile
$ zunfec -o recovery bigfile.0_5.fec bigfile.3_5.fec bigfile.2_5.fec

the commands worked very well, and the file are recovered correctly!

But, then I corrupted one file
$ bvi bigfile.0_5.fec

then I change several bytes in the file, and save it back. Now I use the
same unfec command:

 $ zunfec -o bigerror bigfile.0_5.fec bigfile.3_5.fec bigfile.2_5.fec
$ echo $?
0

it finished without the error codes, but the result was wrong!

So, does zunfec to verify the integrity of the files before recoverying? I
am strong interesting in the erasure code and Tahoe system, and I like to
join your project and work for something.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://allmydata.org/pipermail/zfec-dev/attachments/20090216/87b2ad21/attachment.htm 


More information about the zfec-dev mailing list