public void preallocateEntireJournalDataFile(RecoverableRandomAccessFile file) { if (PreallocationScope.NONE != preallocationScope) { try { if (PreallocationStrategy.OS_KERNEL_COPY == preallocationStrategy) { doPreallocationKernelCopy(file); } else if (PreallocationStrategy.ZEROS == preallocationStrategy) { doPreallocationZeros(file); } else if (PreallocationStrategy.CHUNKED_ZEROS == preallocationStrategy) { doPreallocationChunkedZeros(file); } else { doPreallocationSparseFile(file); } } catch (Throwable continueWithNoPrealloc) { // error on preallocation is non fatal, and we don't want to leak the journal handle LOG.error("cound not preallocate journal data file", continueWithNoPrealloc); } } }
public void preallocateEntireJournalDataFile(RecoverableRandomAccessFile file) { if (PreallocationScope.NONE != preallocationScope) { try { if (PreallocationStrategy.OS_KERNEL_COPY == preallocationStrategy) { doPreallocationKernelCopy(file); } else if (PreallocationStrategy.ZEROS == preallocationStrategy) { doPreallocationZeros(file); } else if (PreallocationStrategy.CHUNKED_ZEROS == preallocationStrategy) { doPreallocationChunkedZeros(file); } else { doPreallocationSparseFile(file); } } catch (Throwable continueWithNoPrealloc) { // error on preallocation is non fatal, and we don't want to leak the journal handle LOG.error("cound not preallocate journal data file", continueWithNoPrealloc); } } }
public void preallocateEntireJournalDataFile(RecoverableRandomAccessFile file) { if (PreallocationScope.NONE != preallocationScope) { try { if (PreallocationStrategy.OS_KERNEL_COPY == preallocationStrategy) { doPreallocationKernelCopy(file); } else if (PreallocationStrategy.ZEROS == preallocationStrategy) { doPreallocationZeros(file); } else if (PreallocationStrategy.CHUNKED_ZEROS == preallocationStrategy) { doPreallocationChunkedZeros(file); } else { doPreallocationSparseFile(file); } } catch (Throwable continueWithNoPrealloc) { // error on preallocation is non fatal, and we don't want to leak the journal handle LOG.error("cound not preallocate journal data file", continueWithNoPrealloc); } } }
public void preallocateEntireJournalDataFile(RecoverableRandomAccessFile file) { if (PreallocationScope.NONE != preallocationScope) { try { if (PreallocationStrategy.OS_KERNEL_COPY == preallocationStrategy) { doPreallocationKernelCopy(file); } else if (PreallocationStrategy.ZEROS == preallocationStrategy) { doPreallocationZeros(file); } else if (PreallocationStrategy.CHUNKED_ZEROS == preallocationStrategy) { doPreallocationChunkedZeros(file); } else { doPreallocationSparseFile(file); } } catch (Throwable continueWithNoPrealloc) { // error on preallocation is non fatal, and we don't want to leak the journal handle LOG.error("cound not preallocate journal data file", continueWithNoPrealloc); } } }