Commit graph

5401 commits

Author SHA1 Message Date
TW
382875692b
Merge pull request #4413 from ThomasWaldmann/vagrant-openbsd
vagrant: add a openbsd 6.4 box
2019-03-01 20:23:43 +01:00
Thomas Waldmann
29735b26c0 vagrant: add a openbsd 6.4 box 2019-03-01 18:29:11 +01:00
TW
8347fb730d
Merge pull request #4412 from ThomasWaldmann/vagrant-updates
Vagrant updates
2019-03-01 17:36:58 +01:00
Thomas Waldmann
cecea99a0e vagrant: darwin: upgrade OS 10.10 -> 10.12 2019-03-01 15:46:43 +01:00
Thomas Waldmann
08574d08f8 vagrant: darwin: add zstd 2019-03-01 15:46:43 +01:00
Thomas Waldmann
e549333bd5 vagrant: upgrade osxfuse 3.8.2 -> 3.8.3 2019-03-01 15:46:43 +01:00
Thomas Waldmann
eb0869a4f6 vagrant: upgrade py 3.5.0 -> 3.5.3 due to openssl 1.1 compatibility 2019-03-01 15:46:43 +01:00
Thomas Waldmann
53ab22a3b3 vagrant: upgrade py 3.6.7 -> 3.6.8 2019-03-01 15:46:37 +01:00
TW
e447401d68
Merge pull request #4410 from ThomasWaldmann/freebsd12-vagrant
new freebsd12 64bit vagrant box, fixes #4399
2019-03-01 15:33:05 +01:00
Thomas Waldmann
63ed2f6d7a new freebsd12 64bit vagrant box, fixes #4399
note:
- openssl 1.1.1 seems to be part of base install
- added zstd compression lib
2019-02-28 21:37:35 +01:00
TW
3b4ff73d47
Merge pull request #4408 from ThomasWaldmann/rel120a3
Release 1.2.0a3
2019-02-28 12:20:40 +01:00
TW
a53bbb2533
Merge pull request #4409 from bket/libressl
crypto: LibreSSL has HMAC_CTX_free and *HMAC_CTX_new
2019-02-28 11:23:02 +01:00
Björn Ketelaars
a87f38e35f crypto: LibreSSL has HMAC_CTX_free and *HMAC_CTX_new
While here improve indentation (use 4 spaces instead of 3).
2019-02-28 07:06:45 +01:00
Thomas Waldmann
8b55bb1096 update CHANGES 2019-02-26 22:50:40 +01:00
Thomas Waldmann
7b4b42d832 pypi metadata: enter alpha dev status 2019-02-26 22:39:27 +01:00
TW
de151cd338
Merge pull request #4407 from bket/libressl
1.2.0a: fix LibreSSL support, see #4403
2019-02-26 22:31:49 +01:00
TW
aed5213c78
Merge pull request #4404 from bket/wip
1.2.0a2: Fix some issues found by the testsuite
2019-02-26 22:30:53 +01:00
Thomas Waldmann
dbe92b7ace xattr.is_enabled: first listxattr before trying getxattr, see #4403
this is needed for the xattr dummy implementation (used e.g.
on openbsd):
- it returns [] for listxattr
- it fails with ENOATTR when trying getxattr for any name

also: reduce code duplication
2019-02-26 21:41:50 +01:00
Björn Ketelaars
9278920bd5 1.2.0a: fix LibreSSL support, see #4403 2019-02-26 21:24:28 +01:00
Björn Ketelaars
c5e3f3b4d4 acl_get() and acl_set() should accept a fd. Related to #4403
Fixes:

self = <borg.archive.MetadataCollector object at 0x14ffb70b28d0>
st = os.stat_result(st_mode=16895, st_ino=246007, st_dev=65280, st_nlink=3, st_uid=100
0, st_gid=0, st_size=512, st_atime=1551123978, st_mtime=1551123979, st_ctime=155112397
9)
path = 'input', fd = 16

    def stat_ext_attrs(self, st, path, fd=None):
        attrs = {}
        bsdflags = 0
        with backup_io('extended stat'):
            if not self.nobsdflags:
                bsdflags = get_flags(path, st, fd=fd)
            xattrs = xattr.get_all(fd or path, follow_symlinks=False)
>           acl_get(path, attrs, st, self.numeric_owner, fd=fd)
E           TypeError: acl_get() got an unexpected keyword argument 'fd'

src/borg/archive.py:1023: TypeError
2019-02-26 17:06:58 +01:00
TW
81f9a8ccde
Merge pull request #4406 from ThomasWaldmann/fix-backup-root
fix openat/statat issues for root directory, fixes #4405
2019-02-26 11:58:31 +01:00
Thomas Waldmann
db2b385a8b fix openat/statat issues for root directory, fixes #4405
basename('/') == '' and we can't use that for openat/statat.
also, there is no parent FD for the root directory...
2019-02-26 11:18:37 +01:00
TW
009bac2e9f
Merge pull request #4398 from ThomasWaldmann/rel120a2
Release 1.2.0a2
2019-02-24 22:01:59 +01:00
Thomas Waldmann
032a4effd3 build_man 2019-02-24 20:40:07 +01:00
Thomas Waldmann
bece7e8090 build_usage 2019-02-24 20:39:42 +01:00
Thomas Waldmann
34fa89b26c add release date 2019-02-24 20:34:44 +01:00
TW
2b16fc9039
Merge pull request #4396 from ThomasWaldmann/api-version-12
bump API_VERSIONs to 1.2_xx
2019-02-24 20:31:18 +01:00
TW
1d61940cfa
Merge pull request #4397 from ThomasWaldmann/update-changes-master
update changes (master)
2019-02-24 19:46:53 +01:00
Thomas Waldmann
a65cefb7bb bump API_VERSIONs to 1.2_xx 2019-02-24 19:45:41 +01:00
Thomas Waldmann
2e5e3a87e1 update CHANGES (master) 2019-02-24 19:23:47 +01:00
Thomas Waldmann
9637c3fbb3 update 1.1.6..1.1.9 sections of CHANGES (from 1.1-maint) 2019-02-24 15:53:02 +01:00
Thomas Waldmann
1344779113 update severe issues section of CHANGES (from 1.1-maint) 2019-02-24 15:50:37 +01:00
TW
886cbdca8e
Merge pull request #4393 from donnyward/master
Update bundled zstd code to 1.3.8, fixes #4210
2019-02-24 15:15:57 +01:00
TW
ab354169c0
Merge pull request #4395 from ThomasWaldmann/freebsd-vm
for now, use old freebsd64 vagrant box for testing
2019-02-24 14:52:05 +01:00
Thomas Waldmann
a796ecbe9d for now, use old freebsd64 vagrant box for testing
the freebsd12-amd64 one is broken due to some pkg vs. openssl111 issue.
2019-02-24 14:51:22 +01:00
TW
dd2a3d42fb
Merge pull request #4391 from ThomasWaldmann/archive-stat-meta
include size/csize/nfiles[_parts] stats into archive, fixes #3241
2019-02-24 14:45:27 +01:00
Thomas Waldmann
c832822721 remove x bits from files, no content changes 2019-02-24 14:15:49 +01:00
Donny Ward
1c3ace4724 Update bundled zstd code to 1.3.8, fixes #4210
Didn't add dll folder since it wasn't copied when updating zstd to
1.3.4.

Didn't add extra files from the lib directory (Makefile, README.md, etc)
that were also left out when updating zstd to 1.3.4.

Add new zstd files to setup_zstd.py (DDict was refactored in
facebook/zstd#1388)
2019-02-23 12:46:11 -08:00
Thomas Waldmann
6809f6f7fa calc_stats: use archive stats metadata, if available
by default, we still have to compute unique_csize the slow way,
but the code offers want_unique=False param to not compute it.
2019-02-23 15:05:07 +01:00
Thomas Waldmann
e569595974 include size/csize/nfiles[_parts] stats into archive, fixes #3241 2019-02-23 15:05:07 +01:00
TW
25ec0511c7
Merge pull request #4390 from ThomasWaldmann/fix-valid-archive-keys
Fix valid archive keys, add comments.
2019-02-23 11:37:26 +01:00
Thomas Waldmann
58f177aa82 add comment about unused recreate_* members in ArchiveItem 2019-02-23 10:49:24 +01:00
Thomas Waldmann
fc30a0765b remove ARCHIVE_KEYS duplication
also: get key set in sync, obviously we have "recreate_partial_chunks"
in ArchiveItem still.
2019-02-23 10:09:40 +01:00
TW
1a2691c6e4
Merge pull request #4388 from ThomasWaldmann/utf8-default
utf-8 is the default
2019-02-22 17:55:16 +01:00
TW
86eca03d81
Merge pull request #4378 from milkey-mouse/fix-4348
Emit user-friendly error if repo key is exported to a directory
2019-02-22 17:50:23 +01:00
TW
1620ae2141
Merge pull request #4387 from ThomasWaldmann/compaction-criteria
improve compaction criteria
2019-02-22 17:42:07 +01:00
Thomas Waldmann
2713500983 remove -*- coding: ... lines, utf-8 is default for py3 2019-02-22 17:12:05 +01:00
Thomas Waldmann
ec9334422e str.encode() / bytes.decode(): utf-8 is the default, fixes #4306
note: i kept explicit utf-8 at some critical places, like e.g.
      key passphrase handling.
2019-02-22 17:05:57 +01:00
Thomas Waldmann
25264dce1f compact: require >10% freeable space in a segment, fixes #2985
before this, it over-eagerly compacted "small" segments ("small"
being < 100MB by default) if there were only a few bytes to be freed.

also:
- improve debug logging
- as compaction is a separate borg command now, use the module logger
2019-02-22 16:18:41 +01:00
TW
d644323333
Merge pull request #4043 from ThomasWaldmann/use-more-fds
use more FDs, avoid race conditions on active fs
2019-02-22 12:54:16 +01:00