瀏覽代碼

mingw32: Removed FSCTL_SET_SPARSE set

Tatsuhiro Tsujikawa 13 年之前
父節點
當前提交
911851debb
共有 1 個文件被更改,包括 0 次插入8 次删除
  1. 0 8
      src/AbstractDiskWriter.cc

+ 0 - 8
src/AbstractDiskWriter.cc

@@ -250,14 +250,6 @@ void AbstractDiskWriter::createFile(int addFlags)
                           error_code::FILE_CREATE_ERROR);
 #ifdef __MINGW32__
   hn_ = getWin32Handle(fd_);
-  // According to the documentation, the file is not sparse by default
-  // on NTFS.
-  DWORD bytesReturned;
-  if(!DeviceIoControl(hn_, FSCTL_SET_SPARSE, 0, 0, 0, 0, &bytesReturned, 0)) {
-    int errNum = GetLastError();
-    A2_LOG_WARN(fmt("Making file sparse failed or pending: %s",
-                    fileStrerror(errNum).c_str()));
-  }
 #endif // __MINGW32__
 }