borgbackup/borg/testsuite
Thomas Waldmann 9be32e97b1 fix sparse file test, fixes #1170
found out that xfs is doing stuff behind the scenes: it is pre-allocating 16MB
to prevent fragmentation (in my case, value depends on misc factors).

fixed the test so it just checks that the extracted sparse file uses less (not
necessary much less) space than a non-sparse file would use.

another problem showed up when i tried to verify the holes in the sparse file
via SEEK_HOLE, SEEK_DATA:
after the few bytes of real data in the file, there was another 16MB
preallocated space.
So I ended up checking just the hole at the start of the file.

tested on: ext4, xfs, zfs, btrfs
2016-06-15 12:22:29 +02:00
..
__init__.py Make Repository a context manager, use decorators for wrapping withs 2016-04-03 17:14:43 +02:00
archive.py rename valid_msgpacked_item to valid_msgpacked_dict 2016-06-12 15:31:31 +02:00
archiver.py fix sparse file test, fixes #1170 2016-06-15 12:22:29 +02:00
benchmark.py cosmetic source cleanup (flake8) 2016-01-30 21:32:45 +01:00
chunker.py Chunker: fix wrong EOF assumption[1], check for return type[2] 2016-03-31 22:03:17 +02:00
compress.py cosmetic source cleanup (flake8) 2016-01-30 21:32:45 +01:00
crypto.py use os.urandom instead of own cython openssl RAND_bytes wrapper, fixes #493 2016-01-24 15:40:04 +01:00
hashindex.py refcounting: use uint32_t, protect against overflows, fix merging for BE 2016-04-14 23:38:56 +02:00
helpers.py unit test for archive format 2016-02-25 00:41:24 +02:00
key.py remove conditionals/wrappers, we always have stat nanosecond support on 3.4+ 2016-01-24 15:16:05 +01:00
locking.py cosmetic source cleanup (flake8) 2016-01-30 21:32:45 +01:00
logger.py configure logging via env var, use LazyLogger 2015-11-21 01:14:07 +01:00
lrucache.py minor lrucache test fix 2015-08-15 16:15:10 +02:00
platform.py acls (linux): make tests as they should be 2015-10-19 01:09:58 +02:00
repository.py Repository: fix commit tags being seen in data 2016-05-19 01:12:06 +02:00
shellpattern.py Add shell-style pattern syntax 2016-01-21 16:07:24 +01:00
upgrader.py Make Repository a context manager, use decorators for wrapping withs 2016-04-03 17:14:43 +02:00
xattr.py xattr tests: ignore security.selinux attribute showing up 2015-09-14 01:26:20 +02:00