aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2022-01-12 21:41:22 +0100
committern-peugnet <n.peugnet@free.fr>2022-01-12 21:41:22 +0100
commitbec41418b2966c44dd75fff6c91a6e3081461e88 (patch)
tree67e77425be36bd77276bddf718ac2054ff1b2dee
parent5a6b8c31bd80274363ce10f3a599e37d95389b13 (diff)
downloaddna-backup-main.tar.gz
dna-backup-main.zip
exp: add 1k chunksHEADmain
-rw-r--r--TODO.md3
-rw-r--r--exp/Makefile4
2 files changed, 6 insertions, 1 deletions
diff --git a/TODO.md b/TODO.md
index f3dbc97..f2544c5 100644
--- a/TODO.md
+++ b/TODO.md
@@ -39,6 +39,9 @@ priority 1
priority 2
----------
- [ ] read individual files
+- [ ] exports, do not compress all chunks at once, but like EROFS, compress with
+ fixed size output chunks of a `TrackSize` multiple.
+ This way it could be possible to read only part of the chunks of a version.
- [ ] refactor `matchStream` as right now it is quite complex
- [ ] tail packing of `PartialChunks` (this Struct does not exist yet as it is
in fact just `TempChunks` for now).
diff --git a/exp/Makefile b/exp/Makefile
index 81fa9c7..f533695 100644
--- a/exp/Makefile
+++ b/exp/Makefile
@@ -36,6 +36,7 @@ export SKIP_CHECK ?= 4
export COMMITS ?= commits.$(RANGE)
##################### Exp dirs #####################
+DNA_1K ?= dna_1k
DNA_4K ?= dna_4k
DNA_8K ?= dna_8k
NOPACK ?= nopack
@@ -51,7 +52,7 @@ export GIT_PATH ?= $(abspath git)
GITC := git -C $(REPO_PATH)
SPACE := $() $()
-DNADIRS := $(DNA_4K) $(DNA_8K)
+DNADIRS := $(DNA_1K) $(DNA_4K) $(DNA_8K)
DNAEXPORT := $(DNADIRS:%=%_export)
DATADIRS := $(DNAEXPORT) $(DIFFS) $(NOPACK) $(BORG) $(TARGZ) $(REAL)
SIZEFILES := $(DATADIRS:%=%.size)
@@ -144,6 +145,7 @@ printvars:
$(info $V=$($V))))
$(DNA_PARAMS):
+ echo "$(DNA_1K) -c 1024" > $@
echo "$(DNA_4K) -c 4096" >> $@
echo "$(DNA_8K) -c 8192" >> $@