mirror of https://github.com/aria2/aria2
2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug that --file-allocation=falloc doesn't work with single file download. * src/AbstractSingleDiskAdaptor.ccpull/1/head
parent
a1a58165a0
commit
978258d2a4
|
@ -1,3 +1,9 @@
|
||||||
|
2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Fixed the bug that --file-allocation=falloc doesn't work with
|
||||||
|
single file download.
|
||||||
|
* src/AbstractSingleDiskAdaptor.cc
|
||||||
|
|
||||||
2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Release 1.8.2
|
Release 1.8.2
|
||||||
|
|
|
@ -97,13 +97,13 @@ FileAllocationIteratorHandle AbstractSingleDiskAdaptor::fileAllocationIterator()
|
||||||
#ifdef HAVE_POSIX_FALLOCATE
|
#ifdef HAVE_POSIX_FALLOCATE
|
||||||
if(_fallocate) {
|
if(_fallocate) {
|
||||||
SharedHandle<FallocFileAllocationIterator> h
|
SharedHandle<FallocFileAllocationIterator> h
|
||||||
(new FallocFileAllocationIterator(this, size(), totalLength));
|
(new FallocFileAllocationIterator(diskWriter.get(), size(), totalLength));
|
||||||
return h;
|
return h;
|
||||||
} else
|
} else
|
||||||
#endif // HAVE_POSIX_FALLOCATE
|
#endif // HAVE_POSIX_FALLOCATE
|
||||||
{
|
{
|
||||||
SingleFileAllocationIteratorHandle h
|
SingleFileAllocationIteratorHandle h
|
||||||
(new SingleFileAllocationIterator(this, size(), totalLength));
|
(new SingleFileAllocationIterator(diskWriter.get(),size(),totalLength));
|
||||||
h->init();
|
h->init();
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue