Преглед на файлове

Fixed compile error which occurs when system has posix_fallocate() but
does not have fallocate().

Tatsuhiro Tsujikawa преди 15 години
родител
ревизия
829803d4f5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/AbstractDiskWriter.cc

+ 1 - 1
src/AbstractDiskWriter.cc

@@ -248,7 +248,7 @@ void AbstractDiskWriter::allocate(off_t offset, uint64_t length)
 # elif HAVE_POSIX_FALLOCATE
   int r = posix_fallocate(fd_, offset, length);
   if(r != 0) {
-    throw DL_ABORT_EX3(errNum,
+    throw DL_ABORT_EX3(r,
                        fmt("posix_fallocate failed. cause: %s",
                            util::safeStrerror(r).c_str()),
                        error_code::FILE_IO_ERROR);