TW
8e91694c54
Merge pull request #3961 from ThomasWaldmann/flags-fd-based
...
make bsdflags linux code fd-based
2018-07-07 18:05:58 +02:00
Thomas Waldmann
018b62c845
bsdflags: use fd instead of path
...
this optimization is only needed for linux, the bsd-like platforms
do not need an open file to run a ioctl against, but have bsdflags
in the stat result already.
on linux, this optimization saves 1 file open/close per input file.
2018-07-07 17:30:17 +02:00
TW
2dd22df751
Merge pull request #3960 from ThomasWaldmann/acl-fd-based
...
ACLs fd-based
2018-07-07 17:28:11 +02:00
Thomas Waldmann
7e47e68e29
acls: use fd instead of path
2018-07-07 17:02:37 +02:00
Thomas Waldmann
5bf5f12be1
acls: only calls os.fsencode for str paths
2018-07-07 16:54:19 +02:00
TW
34cd1b22ec
Merge pull request #3918 from ThomasWaldmann/platform-xattr
...
xattr: move to platform pkg, use cython, use bytes, use fd
2018-07-07 16:50:08 +02:00
Thomas Waldmann
34a51eb958
xattr: fix dummy base getxattr, must raise for any given name
2018-07-07 15:47:56 +02:00
Thomas Waldmann
113b0eabec
xattr: use fd for get_all
...
when processing regular files, use a fd to query xattrs.
when the file was modified and we chunked it, we have it open anyways.
if not, we open the file once and then query xattrs, in the hope that
this is more efficient than the path based calls.
guess it is less prone to race conditions in any case.
2018-07-07 15:47:56 +02:00
Thomas Waldmann
389e806b68
xattr: refactor/fix exception handling in get_all
...
if there is EPERM just for a single attr, it now still collects the
other attrs (previous behaviour: just return empty xattrs dict).
2018-07-07 15:47:56 +02:00
Thomas Waldmann
394d59e6d8
xattr: implement set_all to complement get_all
...
also: follow_symlinks param defaults to False (we do never use True)
fix tests, xattrs are set via FD now.
2018-07-07 15:47:56 +02:00
Thomas Waldmann
c29c3063b0
xattr: use bytes typed path for listxattr, getxattr, setxattr
2018-07-07 15:47:56 +02:00
Thomas Waldmann
9deb90db71
xattr: use bytes typed names for listxattr, getxattr, setxattr
2018-07-07 15:47:56 +02:00
Thomas Waldmann
b5a9ac5682
xattr: use bytes typed values for listattr, getxattr, setxattr
...
- getxattr should only return bytes, not None
- setxattr should not get a None value, just bytes
- remove unneeded tmp vars
2018-07-07 15:47:56 +02:00
Thomas Waldmann
99149684bf
xattr: move to platform package, use cython, fixes #2495
...
this code used to live in borg.xattr and used ctypes
(and was the only ctypes-using code in borg).
the low level code now was converted to cython and
the platform code moved to platform package.
got rid of the code that tried to find the libc.
2018-07-07 15:47:56 +02:00
TW
2178e73cfa
Merge pull request #3965 from russelldavis/patch-1
...
Update installation instructions for macOS
2018-07-07 15:04:16 +02:00
Russell Davis
041f1baf4c
Update installation instructions for macOS
...
- Updated `OS X` to the new `macOS` name
- Fuse 3.x is no longer just a prerelease
- Added instructions to install fuse via homebrew
2018-07-06 18:46:18 -07:00
TW
02c48836fa
Merge pull request #3964 from ThomasWaldmann/vagrant-arch-fix
...
vagrant: fix arch package installation
2018-07-07 00:57:35 +02:00
Thomas Waldmann
0ed15081ad
vagrant: fix arch package installation
2018-07-07 00:55:28 +02:00
TW
89d87ff433
Merge pull request #3959 from ThomasWaldmann/fix-acl-proto-master
...
acl platform code: fix acl set return type (master)
2018-07-05 23:54:31 +02:00
Thomas Waldmann
b76661ab67
acl platform code: fix acl set return type (master)
2018-07-05 22:56:54 +02:00
TW
c7412123b9
Merge pull request #3953 from ThomasWaldmann/vagrant-darwin-fbsd
...
vagrant: fix FreeBSD 12, add Darwin
2018-07-04 02:53:56 +02:00
Thomas Waldmann
3a121ea76b
vagrant: fix FreeBSD 12, add Darwin
2018-07-04 02:51:04 +02:00
TW
23bd234549
Merge pull request #3949 from ThomasWaldmann/use-pyi-331
...
vagrant: use pyinstaller v3.3.1
2018-07-03 21:10:12 +02:00
Thomas Waldmann
ebbeeec241
vagrant: use pyinstaller v3.3.1
...
the fix that i made in v3.3-fixed is also in official release v3.3.1.
2018-07-03 21:09:08 +02:00
TW
bb5e2597d7
Merge pull request #3942 from ThomasWaldmann/issue-3494-master
...
tests: trying to debug test fails on travis, #3494
2018-07-01 00:42:46 +02:00
Thomas Waldmann
04e14933e7
tests: trying to debug test fails on travis, #3494
...
- reordered code a little, so files are touched in different order
let's see if this changes anything.
- create_regular_file: giving size AND contents is not supported
the code did not create a 4096 bytes long file, but just a 1 byte
long file. adding an assertion to avoid unsupported usage.
(cherry picked from commit 2d490aa8c8
)
2018-06-30 23:24:34 +02:00
TW
bb5766b3da
Merge pull request #3941 from ThomasWaldmann/drop-py35
...
drop support for python 3.5, fixes #3919
2018-06-30 21:44:15 +02:00
Thomas Waldmann
55314f807e
drop support for python 3.5, fixes #3919
...
if you do not have python 3.6.x, you can still use borg 1.1.x or 1.0.x.
another option is to use the fat binary from github releases, which
includes python 3.6 and all other stuff needed.
2018-06-30 21:02:19 +02:00
TW
15d1699d48
Merge pull request #3901 from ThomasWaldmann/avoid-stale-repo-files
...
avoid stale filehandle issues, fixes #3265
2018-06-29 23:46:28 +02:00
TW
485aedca43
Merge pull request #3935 from ThomasWaldmann/less-random
...
tests: fetch less data via os.urandom
2018-06-29 13:44:47 +02:00
Thomas Waldmann
acb15fd960
tests: fetch less data via os.urandom
...
freebsd12 is unhappy with having to deliver 50MiB random in one go
and fails with BlockingIOError "temporary unavailable" when trying.
for test_lz4_buffer_allocation, it is good enough to fetch 5MiB and
concatenate that 10 times.
2018-06-29 09:36:00 +02:00
TW
18e875da72
Merge pull request #3934 from ThomasWaldmann/py366
...
vagrant: use python 3.6.6
2018-06-28 18:01:59 +02:00
Thomas Waldmann
55ac6a6d9e
vagrant: use python 3.6.6
2018-06-28 17:59:34 +02:00
TW
34af7ccabc
Merge pull request #3932 from ThomasWaldmann/stretch-pyinstaller
...
vagrant: stretch64: use pyenv to test on py36
2018-06-27 01:49:35 +02:00
Thomas Waldmann
440f7646ac
vagrant: stretch64: use pyenv to test on py36
2018-06-27 01:44:44 +02:00
TW
cd4596d691
Merge pull request #3931 from ThomasWaldmann/bionic
...
vagrant: test on ubuntu 18.04, remove 16.04
2018-06-26 23:34:27 +02:00
Thomas Waldmann
b3c7bb3758
vagrant: test on ubuntu 18.04, remove 16.04
2018-06-26 23:27:35 +02:00
TW
817c2b38a3
Merge pull request #3926 from lumbric/patch-2
...
docs: add link to tempfile module
2018-06-25 20:57:17 +02:00
lumbric
bbd1533c99
docs: add link to tempfile module
...
Linking tempfile docs helps to figure out, which default value might be
used, if TMPDIR is not set.
2018-06-25 20:32:44 +02:00
Thomas Waldmann
5b5546d7e9
avoid stale filehandle issues, fixes #3265
2018-06-24 01:29:15 +02:00
TW
86a91af67a
Merge pull request #3900 from ThomasWaldmann/update-fuse-code
...
use unpacker.tell() instead of deprecated write_bytes, fixes #3899
2018-06-24 01:03:37 +02:00
Thomas Waldmann
a497fe07ab
use unpacker.tell() instead of deprecated write_bytes, fixes #3899
2018-06-24 00:14:53 +02:00
TW
45018489b5
Merge pull request #3921 from SanskritFritz/master
...
Shell completions reflect latest changes
2018-06-23 15:11:18 +02:00
TW
3f3d0ee28d
Merge pull request #3923 from ThomasWaldmann/vagrant-freebsd12
...
vagrant: test on freebsd 12
2018-06-23 03:34:26 +02:00
Thomas Waldmann
6bc731dde6
vagrant: test on freebsd 12
2018-06-23 03:31:25 +02:00
TW
f4aae9db5c
Merge pull request #3922 from ThomasWaldmann/arch-locale
...
vagrant: arch64 VM: generate and set en_US.UTF-8 locale
2018-06-23 00:19:02 +02:00
Thomas Waldmann
a4952c8fe0
vagrant: arch64 VM: generate and set en_US.UTF-8 locale
2018-06-23 00:17:10 +02:00
SanskritFritz
46a5db7de8
Shell completions reflect latest changes
2018-06-22 23:53:44 +02:00
TW
125049f755
Merge pull request #3893 from pmiossec/improve_doc
...
docs: improve diff doc
2018-06-22 18:24:09 +02:00
Philippe MIOSSEC
de25f1c3c7
docs: improve diff doc
...
by better displaying the synthax that should be used
(ie `REPO::ARCHIVE1`)
2018-06-22 00:49:35 +02:00