diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-07 11:37:15 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-09-07 11:37:15 +0000 |
| commit | 4e28efd925214dd60ddc02b8fa3a8c1128bc0fec (patch) | |
| tree | f32264a75e3ba65d92436812157130ee5b31fa91 /src/MultiDiskAdaptor.h | |
| parent | 390538d0b5936cbad9bcdff9ec2e04772751a35c (diff) | |
2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Fixed the bug that DiskWriterEntry is not created when its
FileEntry.isRequested() is false and it doesn't share a piece
with
other FileEntries that are requested. This bug causes
segmentation fault
in the end.
Diffstat (limited to 'src/MultiDiskAdaptor.h')
| -rw-r--r-- | src/MultiDiskAdaptor.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/MultiDiskAdaptor.h b/src/MultiDiskAdaptor.h index bc7500f2..4533b7ce 100644 --- a/src/MultiDiskAdaptor.h +++ b/src/MultiDiskAdaptor.h @@ -49,6 +49,7 @@ private: SharedHandle<DiskWriter> diskWriter; bool _open; bool _directIO; + bool _needsFileAllocation; public: DiskWriterEntry(const SharedHandle<FileEntry>& fileEntry); @@ -87,6 +88,10 @@ public: // Additionally, if diskWriter is opened, diskWriter->disableDirectIO() is // called. void disableDirectIO(); + + bool needsFileAllocation() const; + + void needsFileAllocation(bool f); }; typedef SharedHandle<DiskWriterEntry> DiskWriterEntryHandle; |
