Commit graph

1194 commits

Author SHA1 Message Date
TW
1fa039bb0c
Merge pull request #5208 from ThomasWaldmann/upgrade-zstd-1.1
upgrade bundled zstd to 1.4.5
2020-06-02 22:25:35 +02:00
Thomas Waldmann
fe97669908 upgrade bundled zstd to 1.4.5 2020-06-02 21:47:15 +02:00
Elmar Hoffmann
3587ebae12 rename local preload() function to not overwrite keyword argument of same name
The locally defined preload() function overwrites the preload boolean keyword
argument, always evaluating to true, so preloading is done, even when not
requested by the caller, causing a memory leak.
Also move its definition outside of the loop.

This issue was found by Antonio Larrosa in borg issue #5202.
2020-06-02 21:05:27 +02:00
TW
fcf08106ee
test_delete_force: avoid sporadic test setup issues (#5203)
the old test stumbled over files with an empty chunks list,
so I guess just having some empty file in src/borg could make
that test fail.

fixed this by deleting a chunk of some specific file (we use
this file / this construction at misc. other places in the
archiver tests).
2020-06-01 16:36:40 +02:00
TW
27e7e90b6e
Merge pull request #5152 from ThomasWaldmann/redo-pr-4269-1.1
docs: clarify borg init's encryption modes
2020-04-21 16:37:40 +02:00
Thomas Waldmann
2b1aa46d15 docs: clarify borg init's encryption modes 2020-04-21 12:06:08 +02:00
finefoot
0228435c84
Fix read-only tests for fakeroot environment 2020-04-20 21:36:53 +02:00
finefoot
748295c2e1
Fix testing of unsuccessful mount 2020-04-19 22:54:29 +02:00
Thalian
2d9438d240 [DOCS] Add note about patterns and stored paths, #4160
Add a section that explains why to use relative patterns and how this is changed in Borg 1.2.
2020-04-19 11:22:18 +02:00
finefoot
9acc595359
Fix tests of read-only repos for non-root users 2020-04-13 17:20:36 +02:00
Thomas Waldmann
d99a275da9 fuse: set f_namemax in statfs result, fixes #2684
setting it to 255 for now (as seen on Linux / ext4),
better than the default 0.

the attribute is only present since llfuse 1.3.0.
2020-04-12 21:16:27 +02:00
finefoot
89791c6f84 Add option to bypass locking mechanism 2020-04-11 20:34:30 +02:00
TW
4ca35a858f
Merge pull request #5103 from fantasya-pbem/docs/2295_Orphaned-chunks-1.1
[DOC] Document one cause of orphaned chunks in check command, #2295
2020-04-11 17:17:04 +02:00
Thalian
df8a11cc12 [DOC] Document one cause of orphaned chunks in check command, #2295
Backport from master: Clean up the whole check usage paragraph.
2020-04-11 16:53:03 +02:00
finefoot
9de2645ae9
Allow message for Error base class 2020-04-11 13:25:56 +02:00
Elmar Hoffmann
aa41de8ca1 correctly calculate compression ratio, taking header size into account, too 2020-04-07 00:54:13 +02:00
lexa-a
f033c7fc97 Fix FUSE low linear read speed on large files, fixes #5067
This patch is a quick fix for an inefficient seek algorithm used in read() function:
1) On each read call chunk list for given file is regenerated.
2) Finding needed chunk takes a lot of time for large offsets.

For 64 Gb files read speed drops to 16 MB/s, for 128 Gb - to 8 MB/s, and so on.

After applying this patch read speed becomes 270 MB/s, and does not depend on read position inside file.

Co-authored-by: Thomas Waldmann <tw@waldmann-edv.de>
2020-04-04 16:28:10 +02:00
TW
f832aa58cc
Merge pull request #5072 from ThomasWaldmann/fix-birthtime-old-llfuse
fix crash on old llfuse without birthtime attrs, fixes #5064
2020-04-03 23:20:34 +02:00
Thomas Waldmann
ec5eafd410 fix crash on old llfuse without birthtime attrs, fixes #5064
e.g. ubuntu xenial has llfuse 0.41, which is older than llfuse 1.3,
which introduced birthtime support.
2020-04-02 20:24:23 +02:00
finefoot
ba83b4a539 Update prevalence of env vars to set config and cache paths 2020-04-02 00:00:09 +02:00
TW
7d790ac79f
Merge pull request #4996 from ThomasWaldmann/upgrade-zstd
upgrade bundled zstd to 1.4.4
2020-03-07 22:35:22 +01:00
Thomas Waldmann
5c50c220d6 upgrade zstd to 1.4.4 2020-03-07 19:59:35 +01:00
Thomas Waldmann
7068e5ebbf upgrade bundled lz4 to 1.9.2 2020-03-07 19:25:23 +01:00
Thomas Waldmann
52f64d9aba xxhash: remove xxh3 (does not compile)
we do not use that anyway.
2020-03-07 16:49:23 +01:00
Thomas Waldmann
0e67fc3bc9 upgrade xxhash to 0.7.3
https://github.com/Cyan4973/xxHash/releases/tag/v0.7.3

committed "as is", does not compile due to xxh3.
2020-03-07 16:46:18 +01:00
Rémi Oudin
57b2b185b2 extract: fix confusing output of borg extract --list --strip-components, fixes #4934 2020-03-04 12:26:51 +01:00
TW
ae78914cfa
Merge pull request #4970 from willsALMANJ/fix-4905-1.1
Move sync_file_range to its own extension
2020-03-03 02:45:12 +01:00
Will
4327922bdd Move sync_file_range to its own extension 2020-03-01 14:05:50 -05:00
Thomas Waldmann
701159ac9d fix bug in hashindex_set on resize, fixes #4829
the problem was that after a resize that was triggered by too few
empty buckets, the rebuilt new hash table had entries at different
positions than before, but the idx where to SET the entry was not
recomputed afterwards.
2020-03-01 16:40:53 +01:00
TW
29de980c91
Merge pull request #4964 from ThomasWaldmann/fix-bad-hint-1.1
fix crash when upgrading erroneous hints file, fixes #4922
2020-03-01 13:08:55 +01:00
Thomas Waldmann
a7198a5a8b fix crash when upgrading erroneous hints file, fixes #4922
if an old hints file gets converted to the new format and it
has entries referring to non-existent segment files, a crash
occurred.

with this code, the crash is avoided and the erroneous hints
entry is removed.
2020-03-01 02:53:00 +01:00
Thomas Waldmann
ae0346b032 xxhash: remove experimental xxh3 code
it does not compile and we don't use it anyway.
2020-02-29 23:26:43 +01:00
Thomas Waldmann
7d66641d86 upgrade bundled xxhash to 0.7.2, fixes #4891
Looks like the minimum requirement for correct operations
on ARMv6 in non-fixup mode is xxhash 0.7.2.

note: this does not compile due to the experimental stuff in xxh3.h.
2020-02-29 23:22:55 +01:00
TW
da334f707e
Merge pull request #4961 from ThomasWaldmann/prune-stats-dry-1.1
ignore --stats when given with --dry-run, but continue, fixes #4373
2020-02-29 21:48:26 +01:00
Thomas Waldmann
42f35f0ea6 ignore --stats when given with --dry-run, but continue, fixes #4373
... but continue the operation just as if --stats was not given.
2020-02-29 21:26:01 +01:00
Thomas Waldmann
358ba5e591 fix ProgressIndicator msgids, fixes #4935
add some to code, fix docs.
2020-02-29 20:39:27 +01:00
Thomas Waldmann
c91ec6926d make the pep8 checker happy
less pretty IMHO than before, though.
2020-01-25 00:58:52 +01:00
TW
ce237840fe
support platforms with no os.link (#4903)
support platforms with no os.link, fixes #4901

if we don't have os.link, we just extract another copy instead of making a hardlink.

for that to work, we need to have (and keep) the chunks list in hardlink_masters.
2020-01-17 20:56:23 +01:00
TW
9166ad18d9
Merge pull request #4888 from miguno/1.1-maint
Document how to test exclusion patterns without performing an actual backup
2019-12-19 01:12:45 +01:00
TW
0a54ecea96
Merge pull request #4885 from BirkhoffLee/1.1-maint
Elaborate on "Calculating size" message
2019-12-19 00:43:05 +01:00
Michael G. Noll
da08c0e9b8 Document how to test exclusion patterns without performing an actual backup 2019-12-18 09:07:14 +01:00
Birkhoff Lee
fe35746e0a Elaborate on "Calculating size" message 2019-12-18 12:45:53 +08:00
Rémi Oudin
99582150f3
The test recreate_timestamp is fixed
The test was failing due to localisation.
This is fixed by this commit
2019-12-12 18:55:11 +01:00
TW
d837aecf90
Merge pull request #4825 from ThomasWaldmann/fix-commit-freespace-calc-missing-segment-file-1.1
commit-time free space calc: ignore bad compact map entries, fixes #4796
2019-11-26 13:56:30 +01:00
TW
4c817d89c4
Improve repo check output (1.1-maint) (#4831)
check: improve error output for matching index size, see #4829

if the rebuilt index size matched the on-disk index size AND there
was a difference in e.g. 1 key, the old code only output the key/value
for one index, but not what is present in the other index.

we already had better code in the branch for different index sizes,
so just use that for both cases.

additionally we tell when the index size matches (new) because we
also tell if there is a mismatch.
2019-11-26 13:51:55 +01:00
TW
845b5f9971
Merge pull request #4846 from ThomasWaldmann/invalid-item-key
check: do not stumble over invalid item key, fixes #4845
2019-11-22 23:14:27 +01:00
Rémi Oudin
509f618fc6 info: if the archive doesn't exist, print a pretty message, fixes #4793 2019-11-21 23:46:46 +01:00
Rémi Oudin
527cb06d5c recreate: support --timestamp option, fixes #4745 2019-11-21 22:29:25 +01:00
Thomas Waldmann
e51394c162 check: do not stumble over invalid item key, fixes #4845
The code used for error reporting crashes due to an invalid utf-8
sequence. Use errors='replace' to never crash there. Errors
are expected in input data when borg check is run.
2019-11-19 20:43:32 +01:00
TW
3c62325444
Merge pull request #4826 from ThomasWaldmann/invalid-repo-msg-1.1
give invalid repo error msg if repo config not found, fixes #4411
2019-11-05 00:17:11 +01:00