Thomas Waldmann
c15787852a
tox.ini: remove changedir
2016-05-30 22:10:03 +02:00
Thomas Waldmann
7e0ea1635a
Merge branch 'master' into move-to-src
2016-05-30 19:41:30 +02:00
Thomas Waldmann
045e5a1203
Merge branch 'master' into move-to-src
2016-05-30 19:38:16 +02:00
TW
6b666b217b
Merge pull request #1108 from ThomasWaldmann/nitpicks
...
log format tests: be more clear about new and old
2016-05-30 19:21:05 +02:00
Thomas Waldmann
76d429edd3
log format tests: be more clear about new and old
2016-05-30 18:57:57 +02:00
TW
479819efa0
Merge pull request #1096 from edgewood/simplify_remote_logging_test
...
Break out remote log and stderr handling code to simplify testing
2016-05-30 18:47:33 +02:00
TW
e69bc362e5
Merge pull request #858 from enkore/issue/843
...
Auto-recover from corrupted index/hints file(s)
2016-05-30 17:15:23 +02:00
enkore
1ec149fe27
Merge pull request #1095 from Voltara/master
...
RemoteRepository: Fix busy wait in call_many, fixes #940
2016-05-29 22:41:22 +02:00
Marian Beermann
d1ce746a02
borg.hashindex: use PyErr_SetFromErrnoWithFilename
...
instead of home-grown (i.e. not medical grade) OSError raising.
2016-05-29 19:52:56 +02:00
Marian Beermann
9ebb37cab8
testsuite/repository: fixup for 7a569bc
2016-05-29 18:51:13 +02:00
enkore
3be3de7032
Merge pull request #1097 from RonnyPfannschmidt/header-fix
...
obtain ioctl from sys/ioctl.h as per manpage
2016-05-29 00:50:03 +02:00
Ronny Pfannschmidt
7b564e518d
obtain ioctl from sys/ioctl.h as per manpage
...
fixed build failure on fedora
2016-05-28 23:51:13 +02:00
Ed Blackman
d42f1e691a
Break out remote log and stderr handling code to simplify testing
...
May fix issue 1081, but that issue is hard to reproduce.
2016-05-27 23:09:46 -04:00
Marian Beermann
1f33861fd6
Repository: better error reporting for index/hints failures
2016-05-27 22:25:15 +02:00
Marian Beermann
d979a84f37
Handle permission and similar errors on the index
2016-05-27 22:24:01 +02:00
Marian Beermann
252c1b9802
Auto-recover from corrupted index/hints file(s)
...
And don't swallow all OSErrors when creating archives. We need to work on
that on a more general level...
2016-05-27 22:24:01 +02:00
TW
f51715223a
Merge pull request #1041 from enkore/feature/newcompact
...
Repository: compact v2
2016-05-27 22:06:48 +02:00
Andrew Skalski
731f6241fa
RemoteRepository: Fix busy wait in call_many, fixes #940
2016-05-25 18:26:55 -04:00
TW
7aed2d1d29
Merge pull request #1094 from enkore/stuff/tests
...
Travis workers hate him: improve testing speed with one simple trick
2016-05-26 00:14:03 +02:00
Marian Beermann
478a6f29b6
Lower PBKDF2 iteration count for the tests
...
This cuts testing time to about one third for me.
2016-05-25 22:29:57 +02:00
Marian Beermann
0e3bba7b64
Don't rebuild command line parser for each invocation
...
Makes tests faster
2016-05-25 22:01:38 +02:00
Marian Beermann
2806133902
testsuite/repository: test .compact, _build_sparse
2016-05-25 12:15:49 +02:00
Marian Beermann
4619f781d8
Terms, principles of Repository
2016-05-25 11:47:12 +02:00
Marian Beermann
b8d1bc1ca8
Repository: don't read+verify old entries for size retrieval
2016-05-25 11:47:12 +02:00
Marian Beermann
f99ad4ca6f
Repository: compact v2
...
- Track free space information for each sparse segment
- Don't compact large segments with little free space
2016-05-25 11:47:12 +02:00
enkore
4302ffbdbc
Merge pull request #1092 from ThomasWaldmann/fix-stdout
...
fix crashing borg extract --stdout, fixes #1064
2016-05-24 23:11:03 +02:00
TW
4c4aa64410
Merge pull request #1091 from ThomasWaldmann/swidth-fallback
...
fall back to len() if wcswidth returns negative value
2016-05-24 22:56:59 +02:00
Thomas Waldmann
9fff2af134
fix crashing borg extract --stdout, fixes #1064
2016-05-24 22:40:20 +02:00
Thomas Waldmann
c4c11d75a1
fall back to len() if wcswidth returns neg. value, fixes #1090
2016-05-24 22:18:14 +02:00
enkore
e134f652ce
Merge pull request #1089 from enkore/fix/tox-yes-again
...
fix tox build for environment-python != containing-python in yet-anot…
2016-05-24 21:41:28 +02:00
Marian Beermann
4f1157c3a4
fix tox build for environment-python != containing-python in yet-another instance
...
this instance: the repository worktree is *not* named borg.
2016-05-24 20:58:12 +02:00
enkore
684efd08ff
Merge pull request #1075 from enkore/fix/commitcheck-2
...
Repository: avoid reading large segments for commit state check
2016-05-24 18:52:50 +02:00
enkore
33f3a70cf6
Merge pull request #1077 from ThomasWaldmann/do-not-chunk-small-files
...
chunker: speed up remainder <= min_size case
2016-05-24 18:44:44 +02:00
Marian Beermann
7a569bc037
Repository: avoid reading large segments for commit state check
2016-05-23 00:42:37 +02:00
enkore
5fa52758a0
Merge pull request #1084 from enkore/fix/plsf
...
Fix referencing error in platform_linux.set_flags
2016-05-22 20:06:40 +02:00
Marian Beermann
cdb8cc5490
Fix referencing error in platform_linux.set_flags
2016-05-22 19:54:10 +02:00
enkore
ec90f9ae57
Merge pull request #1083 from enkore/fix/ppc
...
Fix bug on powerpc linux
2016-05-22 19:31:36 +02:00
Marian Beermann
f27f0e1ea2
Fix bug on powerpc linux
2016-05-22 19:15:47 +02:00
enkore
279fb3958f
Merge pull request #1082 from enkore/issue/1080
...
List files excluded via UF_NODUMP
2016-05-22 18:15:22 +02:00
Marian Beermann
ed6f6b9aac
platform_linux.set_flags: don't raise on EOPNOTSUPP
2016-05-22 17:38:53 +02:00
Marian Beermann
ffa78161cd
List files excluded via UF_NODUMP
2016-05-22 15:50:34 +02:00
TW
5675e4fceb
Merge pull request #1073 from ThomasWaldmann/test-py36
...
test on py36
2016-05-22 13:38:47 +02:00
TW
a1365c9bc7
Merge pull request #1079 from enkore/issue/1078
...
Fix crash regression for UDS introduced in 805f631
2016-05-22 13:38:22 +02:00
Marian Beermann
e7523b7d46
Fix fuse tests when flags are available
...
e.g. fuse installed, TMPDIR != tmpfs
2016-05-22 11:29:57 +02:00
Marian Beermann
ce6b838da8
Fix crash regression for UDS introduced in 805f631
2016-05-22 11:09:07 +02:00
Thomas Waldmann
96a798debb
chunker: add a comment about a potential speedup
2016-05-22 01:22:52 +02:00
Thomas Waldmann
8834f6fdbd
chunker: do not buzhash if not needed, fixes #1021
...
For small remainders of files (last chunk), we do not need to buzhash if it
is already clear that there is not enough left (we want at least min_size big
chunks).
Small files are handled by same code - as they only give 1 chunk, that is
the last chunk (see above).
See "Cases" considerations below.
For big files, we do not need to buzhash the first min_size bytes of a chunk -
we do not want to cut there anyway, so we can start buzhashing at offset
min_size.
Cases (before this change)
--------------------------
- A) remaining <= window_size
- would do 2 chunker_fill calls (both line 253) and trigger eof with the 2nd call
- no buzhashing
- result is 1 <remaining> length chunk
- B) window_size < remaining <= min_size:
- the chunker would do 1 chunker_fill call (line 253) that would read the entire remaining file (but not trigger eof yet)
- would compute all possible remaining - window_size + 1 buzhashes, but without a chance for a cut,
because there is also the n < min_size condition
- would do another chunker_fill call (line 282), but not get more data, so loop ends
- result is 1 <remaining> length chunk
- C) file > min_size:
- normal chunking
Cases (after this change)
-------------------------
- A) similar to above A), but up to remaining < min_size + window_size + 1,
so it does not buzhash if there is no chance for a cut.
- B) see C) above
2016-05-22 01:18:16 +02:00
TW
166352ee25
Merge pull request #1076 from ThomasWaldmann/docs-chunker-kernel-version
...
clarify comment about linux kernel versions, fixes #1024
2016-05-21 21:17:13 +02:00
Thomas Waldmann
99fa484726
clarify comment about linux kernel versions
...
currently, ALL linux kernels are affected.
2016-05-21 21:08:03 +02:00
Thomas Waldmann
d27a3521ec
test on py36
2016-05-21 19:24:18 +02:00