mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-14 20:13:21 -04:00
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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| archive.py | ||
| archiver.py | ||
| benchmark.py | ||
| chunker.py | ||
| compress.py | ||
| crypto.py | ||
| hashindex.py | ||
| helpers.py | ||
| key.py | ||
| locking.py | ||
| logger.py | ||
| lrucache.py | ||
| platform.py | ||
| repository.py | ||
| shellpattern.py | ||
| upgrader.py | ||
| xattr.py | ||