From cd23d810d376b13eba832ededfc959e5e0d6ce0c Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 10 Feb 2023 14:12:08 +0100 Subject: [PATCH] recreate: --chunker-params must default to None, fixes #7337 before the fix, it triggered rechunking if an archive was created with non-default chunker params. but it only should rechunk if borg recreate is invoked with explicitly giving --chunker-params=.... --- src/borg/archiver.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 8cc3a7b09..15652119a 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -4652,10 +4652,10 @@ class Archiver: 'If no MODE is given, `if-different` will be used. ' 'Not passing --recompress is equivalent to "--recompress never".') archive_group.add_argument('--chunker-params', metavar='PARAMS', dest='chunker_params', action=Highlander, - type=ChunkerParams, default=CHUNKER_PARAMS, - help='specify the chunker parameters (ALGO, CHUNK_MIN_EXP, CHUNK_MAX_EXP, ' - 'HASH_MASK_BITS, HASH_WINDOW_SIZE) or `default` to use the current defaults. ' - 'default: %s,%d,%d,%d,%d' % CHUNKER_PARAMS) + type=ChunkerParams, default=None, + help='rechunk using given chunker parameters (ALGO, CHUNK_MIN_EXP, CHUNK_MAX_EXP, ' + 'HASH_MASK_BITS, HASH_WINDOW_SIZE) or `default` to use the chunker defaults. ' + 'default: do not rechunk') subparser.add_argument('location', metavar='REPOSITORY_OR_ARCHIVE', nargs='?', default='', type=location_validator(),