From 917f028f46741b9032b2330a3ef0fa1552f6d93b Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Thu, 8 Aug 2019 10:42:31 +1000 Subject: [PATCH] Default ractool to use dchunksize not cchunksize --- cmd/ractool/data.go | 2 +- cmd/ractool/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/ractool/data.go b/cmd/ractool/data.go index ce2f2a5e..14f49453 100644 --- a/cmd/ractool/data.go +++ b/cmd/ractool/data.go @@ -28,7 +28,7 @@ The flags should include exactly one of -decode or -encode. When encoding, the input is partitioned into chunks and each chunk is compressed independently. You can specify the target chunk size in terms of either its compressed size or decompressed size. By default (if both --cchunksize and -dchunksize are zero), a 64KiB -cchunksize is used. +-cchunksize and -dchunksize are zero), a 64KiB -dchunksize is used. You can also specify a -cpagesize, which is similar to but not exactly the same concept as alignment. If non-zero, padding is inserted into the output to diff --git a/cmd/ractool/main.go b/cmd/ractool/main.go index cf5b79b9..075a3d1f 100644 --- a/cmd/ractool/main.go +++ b/cmd/ractool/main.go @@ -31,7 +31,7 @@ The flags should include exactly one of -decode or -encode. When encoding, the input is partitioned into chunks and each chunk is compressed independently. You can specify the target chunk size in terms of either its compressed size or decompressed size. By default (if both --cchunksize and -dchunksize are zero), a 64KiB -cchunksize is used. +-cchunksize and -dchunksize are zero), a 64KiB -dchunksize is used. You can also specify a -cpagesize, which is similar to but not exactly the same concept as alignment. If non-zero, padding is inserted into the output to @@ -256,7 +256,7 @@ func encode(r io.Reader) error { if (*cchunksizeFlag != 0) && (*dchunksizeFlag != 0) { return errors.New("must specify none or one of -cchunksize or -dchunksize") } else if (*cchunksizeFlag == 0) && (*dchunksizeFlag == 0) { - *cchunksizeFlag = 65536 // 64 KiB. + *dchunksizeFlag = 65536 // 64 KiB. } switch *codecFlag {