summaryrefslogtreecommitdiff
path: root/src/AbstractDiskWriter.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-12-05 23:47:35 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-12-05 23:47:35 +0900
commit829803d4f5945bebca2ad0321d160f873b85949e (patch)
tree6a3d3ac415a667a67cbf7eaaabf93e4cc8600804 /src/AbstractDiskWriter.cc
parentda8e0203b862c280dfc97af956e0d6a61fab7e73 (diff)
Fixed compile error which occurs when system has posix_fallocate() but
does not have fallocate().
Diffstat (limited to 'src/AbstractDiskWriter.cc')
-rw-r--r--src/AbstractDiskWriter.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AbstractDiskWriter.cc b/src/AbstractDiskWriter.cc
index e796ab51..ec04594a 100644
--- a/src/AbstractDiskWriter.cc
+++ b/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);