From 77d272623fb4fd57cf27d4b92a7dc1713a2d4098 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 22 Mar 2009 17:36:43 +0000 Subject: * NAR archives: handle files larger than 2^32 bytes. Previously it would just silently store only (fileSize % 2^32) bytes. * Use posix_fallocate if available when unpacking archives. * Provide a better error message when trying to unpack something that isn't a NAR archive. --- src/libstore/local-store.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstore') diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 1d0c68cb88a5..fdfc8534662a 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -865,7 +865,7 @@ Path LocalStore::importPath(bool requireSignature, Source & source) store path follows the archive data proper), and besides, we don't know yet whether the signature is valid. */ Path tmpDir = createTempDir(nixStore); - AutoDelete delTmp(tmpDir); + AutoDelete delTmp(tmpDir); /* !!! could be GC'ed! */ Path unpacked = tmpDir + "/unpacked"; restorePath(unpacked, hashAndReadSource); -- cgit 1.4.1