summaryrefslogtreecommitdiff
path: root/lib/raidfile/RaidFileWrite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/raidfile/RaidFileWrite.cpp')
-rw-r--r--lib/raidfile/RaidFileWrite.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/raidfile/RaidFileWrite.cpp b/lib/raidfile/RaidFileWrite.cpp
index 82aeef3d..8f95ba65 100644
--- a/lib/raidfile/RaidFileWrite.cpp
+++ b/lib/raidfile/RaidFileWrite.cpp
@@ -42,8 +42,8 @@
// Must have this number of discs in the set
#define TRANSFORM_NUMBER_DISCS_REQUIRED 3
-// we want to use POSIX fstat() for now, not the emulated one
-#undef fstat
+// We want to use POSIX fstat() for now, not the emulated one, because it's
+// difficult to rewrite all this code to use HANDLEs instead of ints.
// --------------------------------------------------------------------------
//
@@ -243,7 +243,7 @@ void RaidFileWrite::Open(bool AllowOverwrite)
// Created: 2003/07/10
//
// --------------------------------------------------------------------------
-void RaidFileWrite::Write(const void *pBuffer, int Length)
+void RaidFileWrite::Write(const void *pBuffer, int Length, int Timeout)
{
// open?
if(mOSFileHandle == -1)
@@ -672,7 +672,9 @@ void RaidFileWrite::TransformToRaidStorage()
{ \
if (::unlink(file) != 0 && errno != ENOENT) \
{ \
- THROW_EXCEPTION(RaidFileException, OSError); \
+ THROW_EMU_ERROR("Failed to unlink raidfile " \
+ "stripe: " << file, RaidFileException, \
+ OSError); \
} \
}
CHECK_UNLINK(stripe1Filename.c_str());