From c4bb97b7a4e25eb245c85963035344b67f50854b Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Mon, 10 Oct 2016 15:55:50 -0500 Subject: [PATCH] INDEX_SIG: widen children_ofs to 64-bit This should avoid failures when the index grows larger than 4GB. Update the index format header to 'BUPI\0\0\0\7' (version 7). Thanks to phillipproell amd Wayne Scott for reporting the problem, and helping track down the cause/fix. Signed-off-by: Rob Browning Tested-by: Rob Browning Signed-off-by: Rob Browning --- lib/bup/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bup/index.py b/lib/bup/index.py index 44e26ff..a570784 100644 --- a/lib/bup/index.py +++ b/lib/bup/index.py @@ -8,7 +8,7 @@ from bup.helpers import (add_error, log, merge_iter, mmap_readwrite, EMPTY_SHA = '\0'*20 FAKE_SHA = '\x01'*20 -INDEX_HDR = 'BUPI\0\0\0\6' +INDEX_HDR = 'BUPI\0\0\0\7' # Time values are handled as integer nanoseconds since the epoch in # memory, but are written as xstat/metadata timespecs. This behavior @@ -29,7 +29,7 @@ INDEX_SIG = ('!' 'I' # gitmode '20s' # sha 'H' # flags - 'I' # children_ofs + 'Q' # children_ofs 'I' # children_n 'Q') # meta_ofs -- 2.39.2