about summary refs log tree commit diff
path: root/src/libstore/export-import.cc
AgeCommit message (Collapse)AuthorFilesLines
2017-03-01 TeeSink: Pre-reserve string spaceEelco Dolstra1-6/+5
When receiving a very large file, this can prevent the string from having tobe copied, which temporarily doubles memory consumption.
2017-03-01 RemoteStore::addToStore(): Send NAR rather than string containing NAREelco Dolstra1-22/+1
This allows the NAR to be streamed in the future (though we're not doing that yet).
2017-03-01 Handle importing NARs containing files greater than 4 GiBEelco Dolstra1-1/+1
Also templatize readInt() to work for various integer types.
2016-11-26 Revert "Get rid of unicode quotes (#1140)"Eelco Dolstra1-4/+4
This reverts commit f78126bfd6b6c8477fcdbc09b2f98772dbe9a1e7. There really is no need for such a massive change...
2016-11-25 Get rid of unicode quotes (#1140)Guillaume Maudoux1-4/+4
2016-10-21 Remove addPathToAccessorEelco Dolstra1-4/+1
2016-10-21 BinaryCacheStore: Optionally write a NAR listingEelco Dolstra1-1/+1
The store parameter "write-nar-listing=1" will cause BinaryCacheStore to write a file ‘<store-hash>.ls.xz’ for each ‘<store-hash>.narinfo’ added to the binary cache. This file contains an XZ-compressed JSON file describing the contents of the NAR, excluding the contents of regular files. E.g. { "version": 1, "root": { "type": "directory", "entries": { "lib": { "type": "directory", "entries": { "Mcrt1.o": { "type": "regular", "size": 1288 }, "Scrt1.o": { "type": "regular", "size": 3920 }, } } } ... } } (The actual file has no indentation.) This is intended to speed up the NixOS channels programs index generator [1], since fetching gazillions of large NARs from cache.nixos.org is currently a bottleneck for updating the regular (non-small) channel. [1] https://github.com/NixOS/nixos-channel-scripts/blob/master/generate-programs-index.cc
2016-10-07 importPaths(): Fix accessor support for HydraEelco Dolstra1-7/+2
2016-06-01 Make the store directory a member variable of StoreEelco Dolstra1-2/+2
2016-05-31 nix-copy-closure / build-remote.pl: Disable signature checkingEelco Dolstra1-2/+2
This restores the Nix 1.11 behaviour.
2016-05-04 Add a Store::addToStore() variant that accepts a NAREelco Dolstra1-0/+136
As a side effect, this ensures that signatures are propagated when copying paths between stores. Also refactored import/export to make use of this.