diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-01-11 18:35:54 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-01-11 18:35:54 +0900 |
| commit | e0ea88ebcf71674ab4f56ae542f0f556cd1f434d (patch) | |
| tree | 486f43cceb86527e6056c252f5b733b6cb8bbcaa /src/BinaryStream.h | |
| parent | 357e4b1a77132705432345e0f54ec50ab07a73ab (diff) | |
mingw32: Make NTFS sparse file on --file-allocation=trunc
Diffstat (limited to 'src/BinaryStream.h')
| -rw-r--r-- | src/BinaryStream.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/BinaryStream.h b/src/BinaryStream.h index dabf8aa5..c5a23a62 100644 --- a/src/BinaryStream.h +++ b/src/BinaryStream.h @@ -55,8 +55,9 @@ public: virtual void truncate(int64_t length) {} // Allocates given length bytes of disk space from given offset. The - // default implementation does nothing. - virtual void allocate(int64_t offset, int64_t length) {} + // default implementation does nothing. If sparse is true, the + // implementation may create sparse file (with holes). + virtual void allocate(int64_t offset, int64_t length, bool sparse) {} }; } // namespace aria2 |
