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/libutil/archive.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libutil/archive.hh') diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh index 06f09cd1ec..fff6203139 100644 --- a/src/libutil/archive.hh +++ b/src/libutil/archive.hh @@ -62,6 +62,7 @@ struct ParseSink virtual void createRegularFile(const Path & path) { }; virtual void isExecutable() { }; + virtual void preallocateContents(unsigned long long size) { }; virtual void receiveContents(unsigned char * data, unsigned int len) { }; virtual void createSymlink(const Path & path, const string & target) { }; -- cgit 1.4.1