diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-12-06 22:48:46 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-12-06 22:48:46 +0900 |
| commit | bec0f6dc11316ce9ba80ee4963d98af54a42dc01 (patch) | |
| tree | fa7adb0144a23dc43fa4bec88799e68291e49653 /src/AbstractDiskWriter.cc | |
| parent | a6b18c868bcf32ddb14ddea79281fa3c12e22803 (diff) | |
Removed warning when --file-allocation=falloc is used in MinGW32 build
The warning was just a mistake. SetFilePointerEx + SetEndOfFile
actually allocate disk space.
Diffstat (limited to 'src/AbstractDiskWriter.cc')
| -rw-r--r-- | src/AbstractDiskWriter.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/AbstractDiskWriter.cc b/src/AbstractDiskWriter.cc index d1c1d320..01644aca 100644 --- a/src/AbstractDiskWriter.cc +++ b/src/AbstractDiskWriter.cc @@ -442,11 +442,6 @@ void AbstractDiskWriter::allocate(int64_t offset, int64_t length) } #ifdef HAVE_SOME_FALLOCATE # ifdef __MINGW32__ - // TODO Remove __MINGW32__ code because the current implementation - // does not behave like ftruncate or posix_ftruncate. Actually, it - // is the same sa ftruncate. - A2_LOG_WARN("--file-allocation=falloc is now deprecated for MinGW32 build. " - "Consider to use --file-allocation=trunc instead."); truncate(offset+length); # elif HAVE_FALLOCATE // For linux, we use fallocate to detect file system supports |
