From: zooko Date: Thu, 8 Nov 2007 22:41:37 +0000 (+0530) Subject: zfec: make the default K and M for the cmdline "zfec" tool be 3-of-8 X-Git-Url: https://git.rkrishnan.org/pf/components/com_hotproperty/%3C?a=commitdiff_plain;h=69208d5d678e565ab4a33906e0870e9f4fe29eeb;p=tahoe-lafs%2Fzfec.git zfec: make the default K and M for the cmdline "zfec" tool be 3-of-8 The unit tests currently expect these defaults. darcs-hash:58dc1f683e135b0107e055f9651254c7965be1f5 --- diff --git a/zfec/zfec/cmdline_zfec.py b/zfec/zfec/cmdline_zfec.py index 2f3d94f..f8464d3 100755 --- a/zfec/zfec/cmdline_zfec.py +++ b/zfec/zfec/cmdline_zfec.py @@ -11,6 +11,9 @@ import filefec from zfec import __version__ as libversion __version__ = libversion +DEFAULT_K=3 +DEFAULT_M=8 + def main(): if '-V' in sys.argv or '--version' in sys.argv: @@ -24,8 +27,8 @@ def main(): parser.add_argument('-d', '--output-dir', help='directory in which share file names will be created (default ".")', default='.', metavar='D') parser.add_argument('-p', '--prefix', help='prefix for share file names; If omitted, the name of the input file will be used.', metavar='P') parser.add_argument('-s', '--suffix', help='suffix for share file names (default ".fec")', default='.fec', metavar='S') - parser.add_argument('-m', '--totalshares', help='the total number of share files created (default 8)', default=8, type=int, metavar='M') - parser.add_argument('-k', '--requiredshares', help='the number of share files required to reconstruct (default 3)', default=3, type=int, metavar='K') + parser.add_argument('-m', '--totalshares', help='the total number of share files created (default 16)', default=16, type=int, metavar='M') + parser.add_argument('-k', '--requiredshares', help='the number of share files required to reconstruct (default 4)', default=4, type=int, metavar='K') parser.add_argument('-f', '--force', help='overwrite any file which already in place an output file (share file)', action='store_true') parser.add_argument('-v', '--verbose', help='print out messages about progress', action='store_true') parser.add_argument('-q', '--quiet', help='quiet progress indications and warnings about silly choices of K and M', action='store_true')