Unofficial Hacker News companion — get notified on comment replies, and more.

Show HN: ZAR – A new archive format with history, deduplication, encryption (opens external site)

44 points by brmmm3 1 day ago | github.com | 28 comments on HN | Vote on HN (opens Hacker News) |

View full thread · View on Hacker News

Comment thread (3)

  1. Does it allow for padding so that the start of files can be (memory/filesystem)-page aligned? That allows for mmap-ing non-compressed members and also for reflinking in/out contents from/to the filesystem (on Linux with btrfs, XFS). With tar it's possible with some padding tricks involving PAX comments, see https://pkg.go.dev/nontrivialpursuit.org/deduptar (mine!).

    For any new format I'd like to have that flexibility at least in the format; the utilities can implement it later or not at all but at least the format should allow for the required alignment.

    Replies (2)
    1. My Aqueous (https://lifthrasiir.github.io/aqueous/) can, via spacer blocks. In fact uncompressed blocks are particularly designed for mmaping.
    2. Interesting question. I'll have a look at it.