bug 617123: workaround by removing fallocate calls. a=beltzner

This commit is contained in:
Jason Duell 2010-12-10 10:03:19 -08:00
parent 08e26b0df0
commit cea83e2a0f
2 changed files with 5 additions and 1 deletions

View File

@ -387,7 +387,8 @@ nsDiskCacheBlockFile::Write(PRInt32 offset, const void *buf, PRInt32 amount)
mFileSize = PR_MIN(maxPreallocate, PR_MAX(mFileSize, minPreallocate));
}
mFileSize = PR_MIN(mFileSize, maxFileSize);
mozilla::fallocate(mFD, mFileSize);
// Appears to cause bug 617123? Disabled for now.
//mozilla::fallocate(mFD, mFileSize);
}
if (PR_Seek(mFD, offset, PR_SEEK_SET) != offset)
return false;

View File

@ -733,8 +733,11 @@ nsDiskCacheStreamIO::FlushBufferToFile()
if (NS_FAILED(rv)) return rv;
PRInt64 dataSize = mBinding->mCacheEntry->PredictedDataSize();
// Appears to cause bug 617123? Disabled for now.
#if 0
if (dataSize != -1)
mozilla::fallocate(mFD, PR_MIN(dataSize, kPreallocateLimit));
#endif
}
// write buffer