10 if (m_State->quotaFile) {
11 SYSCALL_ERROR(NotEnoughPermissions);
14 if (!m_State->allocationValid) {
15 SYSCALL_ERROR(IoError);
19#if THREADS || defined(STANDALONE_MUTEXES)
25 if (!m_pExt2Fs->ensureFreeBlockBitmapLoaded(group))
30 const size_t end = offset + length;
31 const size_t count = end / blockSize + (end % blockSize != 0);
32 if (count > m_Blocks.
count()) {
33 if (!m_Blocks.tryReserve(count)) {
34 SYSCALL_ERROR(OutOfMemory);
39 while (m_Blocks.
count() < count)
42 const bool success = ensureWritableRange(offset, length);
46 cacheState().data.clear();