From e0ea88ebcf71674ab4f56ae542f0f556cd1f434d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 11 Jan 2013 18:35:54 +0900 Subject: mingw32: Make NTFS sparse file on --file-allocation=trunc --- src/TruncFileAllocationIterator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/TruncFileAllocationIterator.cc') diff --git a/src/TruncFileAllocationIterator.cc b/src/TruncFileAllocationIterator.cc index e79467e4..212ae651 100644 --- a/src/TruncFileAllocationIterator.cc +++ b/src/TruncFileAllocationIterator.cc @@ -46,7 +46,7 @@ TruncFileAllocationIterator::TruncFileAllocationIterator void TruncFileAllocationIterator::allocateChunk() { - stream_->truncate(totalLength_); + stream_->allocate(0, totalLength_, true); offset_ = totalLength_; } -- cgit