borgbackup/borg
Thomas Waldmann a912c02757 detect inconsistency / corruption / hash collision, closes #170
added a check that compares the size of the new chunk with the stored size of the
already existing chunk in storage that has the same id_hash value.
raise an exception if there is a size mismatch.

this could happen if:

- the stored size is somehow incorrect (corruption or software bug)
- we found a hash collision for the id_hash (for sha256, this is very unlikely)
2015-09-06 01:10:43 +02:00
..
testsuite ChunkerParams: fix parameter order 2015-08-17 11:50:47 +02:00
__init__.py propperly handle borg._version using setuptools_scm 2015-08-22 15:54:40 +02:00
__main__.py add a __main__.py to nuitka works 2015-07-20 16:16:32 +02:00
_chunker.c call fadvise DONTNEED for the byterange we actually have read, fixes #158 2015-08-20 05:33:51 +02:00
_hashindex.c fix issue with negative "all archives" size, fixes #165 2015-08-29 04:46:13 +02:00
archive.py restore_xattrs: ignore if setxattr fails with EACCES, fixes #162 2015-08-29 00:11:04 +02:00
archiver.py docs: usage: improved formatting, cosmetic changes 2015-08-29 04:00:22 +02:00
cache.py detect inconsistency / corruption / hash collision, closes #170 2015-09-06 01:10:43 +02:00
chunker.pyx misc chunker parameter changes 2015-06-21 01:46:41 +02:00
compress.pyx deprecate the numeric --compression argument, rename null compression to none, update CHANGES 2015-08-14 23:00:04 +02:00
crypto.pyx rename package directory to borg 2015-05-22 17:48:54 +02:00
fuse.py Merge pull request #88 from ThomasWaldmann/py3style 2015-07-11 18:39:42 +02:00
hashindex.pyx generalize hashindex code for any key length 2015-08-16 14:51:15 +02:00
helpers.py ChunkerParams: fix parameter order 2015-08-17 11:50:47 +02:00
key.py deprecate the numeric --compression argument, rename null compression to none, update CHANGES 2015-08-14 23:00:04 +02:00
locking.py lock roster: catch file not found in remove() method and ignore it 2015-08-20 18:40:24 +02:00
lrucache.py Merge branch 'master' into lrucache 2015-08-14 10:59:21 +01:00
platform.py fix all references to package name 2015-05-22 19:21:41 +02:00
platform_darwin.pyx fix all references to package name 2015-05-22 19:21:41 +02:00
platform_freebsd.pyx fix all references to package name 2015-05-22 19:21:41 +02:00
platform_linux.pyx fix all references to package name 2015-05-22 19:21:41 +02:00
remote.py remote: pragma: no cover for the stuff we can't test 2015-08-12 04:28:31 +02:00
repository.py remove x bits from repository.py 2015-08-29 12:52:18 +02:00
xattr.py use borg-tmp as prefix for temporary files / directories 2015-07-11 17:22:12 +02:00