TW

Results 2663 comments of TW

Considering memory errors like bitflips and that we might need more than 2 reserved values, we could reserve a few more (256?) and use a bit pattern for "deleted" like...

It is efficient as a single or few bit flips can not make the deleted -> free transition (and neither the free -> deleted). It would transition to "invalid" in...

I've recently played with a pure cython hashtable, maybe we can have something like the above soon. https://github.com/borgbackup/borghash

Some progress in that direction by #8502 - borg2 (starting from beta 13) now uses `borghash` from https://github.com/borgbackup/borghash : - borghash is a separate project with own tests, removed related...

borg does rather special stuff with Ctrl-C / SIGINT, see `SigIntManager` and `raising_signal_handler`, also main() wrapping everything with special signal handling. Interactive usage: usually just pressing ctrl-c multiple times should...

I let Junie generate this, IIRC it is correct: ### Summary Below is a concise comparison of how Borg reacts to common Unix signals, based on the current code paths...

This is used for the key: ``` def random_blake2b_256_key(): # This might look a bit curious, but is the same construction used in the keyed mode of BLAKE2b. # Why...

``` >>> from hashlib import blake2b as b2 >>> key = b"x"*64 >>> padding = b"\0"*64 >>> data = b"fwefergegegwgewrgfqewfqe" >>> b2(data, key=key, digest_size=32).hexdigest() 'e0aa425d342c56646a4f580e533d909819efc0d3462d27b84a878e27c65e7e02' >>> b2(data, key=key+padding, digest_size=32).hexdigest() Traceback...

As this is the chunkid hash as well as the authentication MAC, we can't easily change it. If there is a need to change it, borg2 breaking release might be...

for `borg transfer` from 1.x blake2b_legacy repos to 2.0 blake2b repos, we'll need to support both the old way to compute the digest (for authenticating data) as well as the...