diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2009-05-04 08:10:24 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2009-05-04 08:10:24 +0000 |
commit | 098cb9d233ff7e1568b55e88dacf52e1dc8eebab (patch) | |
tree | eb700b94450c279a81689c004721ac6c579e969d /src/libutil/archive.hh | |
parent | c710fe540e3763d821eab74621b43d9422cb7e92 (diff) |
Add an ftruncate call paired with fallocate to play safe with some FSes (namely, BtrFS fallocate sets file size to allocated size, i.e. multiple of block size)
Diffstat (limited to 'src/libutil/archive.hh')
-rw-r--r-- | src/libutil/archive.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh index fff620313..f358a2a6b 100644 --- a/src/libutil/archive.hh +++ b/src/libutil/archive.hh @@ -64,6 +64,7 @@ struct ParseSink virtual void isExecutable() { }; virtual void preallocateContents(unsigned long long size) { }; virtual void receiveContents(unsigned char * data, unsigned int len) { }; + virtual void finalizeContents(unsigned long long size) { }; virtual void createSymlink(const Path & path, const string & target) { }; }; |