diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-12-05 17:11:22 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2007-12-05 17:11:22 +0000 |
| commit | 2850c16f8aff7637b3a2b602f98805c2e704ddc5 (patch) | |
| tree | e48ca6f186b375db3b7b0a988f1a59f94e271e9f /src/FileAllocationEntry.cc | |
| parent | 84e896eb095ddc9ea94942233711c89a903dfa5c (diff) | |
2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Rewritten direct I/O support routine
* src/SingleFileAllocationIterator.cc
* src/MultiDiskAdaptor.{h, cc}
* src/ByteArrayDiskWriter.h
* src/AbstractSingleDiskAdaptor.h
* src/AbstractDiskWriter.cc
* src/DefaultPieceStorage.cc
* src/DiskWriter.h
* src/BinaryStream.h
* src/IteratableChunkChecksumValidator.cc
* src/IteratableChecksumValidator.cc
* src/CheckIntegrityEntry.cc
* src/FileAllocationEntry.cc
Diffstat (limited to 'src/FileAllocationEntry.cc')
| -rw-r--r-- | src/FileAllocationEntry.cc | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/FileAllocationEntry.cc b/src/FileAllocationEntry.cc index 5bc39ee9..f369bcb0 100644 --- a/src/FileAllocationEntry.cc +++ b/src/FileAllocationEntry.cc @@ -38,24 +38,14 @@ #include "RequestGroup.h" #include "PieceStorage.h" #include "DiskAdaptor.h" -#include "prefs.h" -#include "Option.h" FileAllocationEntry::FileAllocationEntry(RequestGroup* requestGroup, Command* nextCommand): RequestGroupEntry(requestGroup, nextCommand), _fileAllocationIterator(requestGroup->getPieceStorage()->getDiskAdaptor()->fileAllocationIterator()) -{ - if(_requestGroup->getOption()->getAsBool(PREF_ENABLE_DIRECT_IO)) { - _requestGroup->getPieceStorage()->getDiskAdaptor()->enableDirectIO(); - } -} +{} FileAllocationEntry:: ~FileAllocationEntry() -{ - if(_requestGroup->getOption()->getAsBool(PREF_ENABLE_DIRECT_IO)) { - _requestGroup->getPieceStorage()->getDiskAdaptor()->disableDirectIO(); - } -} +{} int64_t FileAllocationEntry::getCurrentLength() { |
