mirror of https://github.com/aria2/aria2
2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Avoid sparse files if possible, because VFAT32 doesn't support it. * src/DefaultDiskWriter.cc (initAndOpenFile) Fixed the bug that prevents file allocation is not done when dowloading multi-torrent file. * src/AbstractDiskWriter.cc (openFile) Increase the maximum number of -j option from 15 to 45. * src/OptionHandlerFactory.cc (createOptionHandlers) Added fr.po, thanks to Charles Landemaine. * po/fr.po * po/LINGUASpull/1/head
parent
3cc1ed5e09
commit
657a40935e
17
ChangeLog
17
ChangeLog
|
@ -1,3 +1,20 @@
|
||||||
|
2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
|
Avoid sparse files if possible, because VFAT32 doesn't support it.
|
||||||
|
* src/DefaultDiskWriter.cc (initAndOpenFile)
|
||||||
|
|
||||||
|
Fixed the bug that prevents file allocation is not done when
|
||||||
|
dowloading multi-torrent file.
|
||||||
|
* src/AbstractDiskWriter.cc (openFile)
|
||||||
|
|
||||||
|
Increase the maximum number of -j option from 15 to 45.
|
||||||
|
* src/OptionHandlerFactory.cc (createOptionHandlers)
|
||||||
|
|
||||||
|
Added fr.po, thanks to Charles Landemaine.
|
||||||
|
* po/fr.po
|
||||||
|
* po/LINGUAS
|
||||||
|
|
||||||
|
|
||||||
2007-08-10 Ross Smith II <aria2spam at smithii dot com>
|
2007-08-10 Ross Smith II <aria2spam at smithii dot com>
|
||||||
|
|
||||||
gcc 3.4.4 support:
|
gcc 3.4.4 support:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
ja de ru
|
ja de ru fr
|
||||||
|
|
|
@ -60,7 +60,7 @@ AbstractDiskWriter::~AbstractDiskWriter()
|
||||||
void AbstractDiskWriter::openFile(const string& filename, int64_t totalLength) {
|
void AbstractDiskWriter::openFile(const string& filename, int64_t totalLength) {
|
||||||
File f(filename);
|
File f(filename);
|
||||||
if(f.exists()) {
|
if(f.exists()) {
|
||||||
openExistingFile(filename);
|
openExistingFile(filename, totalLength);
|
||||||
} else {
|
} else {
|
||||||
initAndOpenFile(filename, totalLength);
|
initAndOpenFile(filename, totalLength);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,7 @@ void DefaultDiskWriter::initAndOpenFile(const string& filename,
|
||||||
try {
|
try {
|
||||||
if(totalLength > 0) {
|
if(totalLength > 0) {
|
||||||
if(fileAllocator.isNull()) {
|
if(fileAllocator.isNull()) {
|
||||||
ftruncate(fd, totalLength);
|
ftruncate(fd, 0);
|
||||||
} else {
|
} else {
|
||||||
logger->notice(MSG_ALLOCATING_FILE,
|
logger->notice(MSG_ALLOCATING_FILE,
|
||||||
filename.c_str(),
|
filename.c_str(),
|
||||||
|
|
|
@ -91,7 +91,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers()
|
||||||
handlers.push_back(new DefaultOptionHandler(PREF_USER_AGENT));
|
handlers.push_back(new DefaultOptionHandler(PREF_USER_AGENT));
|
||||||
handlers.push_back(new BooleanOptionHandler(PREF_NO_NETRC));
|
handlers.push_back(new BooleanOptionHandler(PREF_NO_NETRC));
|
||||||
handlers.push_back(new DefaultOptionHandler(PREF_INPUT_FILE));
|
handlers.push_back(new DefaultOptionHandler(PREF_INPUT_FILE));
|
||||||
handlers.push_back(new NumberOptionHandler(PREF_MAX_CONCURRENT_DOWNLOADS, 1, 15));
|
handlers.push_back(new NumberOptionHandler(PREF_MAX_CONCURRENT_DOWNLOADS, 1, 45));
|
||||||
handlers.push_back(new DefaultOptionHandler(PREF_LOAD_COOKIES));
|
handlers.push_back(new DefaultOptionHandler(PREF_LOAD_COOKIES));
|
||||||
handlers.push_back(new DefaultOptionHandler(PREF_PEER_ID_PREFIX));
|
handlers.push_back(new DefaultOptionHandler(PREF_PEER_ID_PREFIX));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue