From a3bfe5c504d2c2f9594632647173b7108081ae97 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 15 Nov 2008 14:47:26 +0000 Subject: [PATCH] 2008-11-15 Tatsuhiro Tsujikawa Now the default value of --enable-direct-io is true. * src/OptionHandlerFactory.cc * doc/aria2c.1.txt --- ChangeLog | 6 ++++++ doc/aria2c.1 | 6 +++--- doc/aria2c.1.html | 4 ++-- doc/aria2c.1.txt | 2 +- src/OptionHandlerFactory.cc | 2 +- 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 78711f00..ca8a591a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-15 Tatsuhiro Tsujikawa + + Now the default value of --enable-direct-io is true. + * src/OptionHandlerFactory.cc + * doc/aria2c.1.txt + 2008-11-15 Tatsuhiro Tsujikawa Erase peer before executing onReturningPeer and onErasingPeer diff --git a/doc/aria2c.1 b/doc/aria2c.1 index 8c537a3f..139b3134 100644 --- a/doc/aria2c.1 +++ b/doc/aria2c.1 @@ -1,11 +1,11 @@ .\" Title: aria2c .\" Author: .\" Generator: DocBook XSL Stylesheets v1.73.2 -.\" Date: 11/14/2008 +.\" Date: 11/15/2008 .\" Manual: .\" Source: .\" -.TH "ARIA2C" "1" "11/14/2008" "" "" +.TH "ARIA2C" "1" "11/15/2008" "" "" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) @@ -673,7 +673,7 @@ Run as daemon\&. \fB\-\-enable\-direct\-io\fR[=\fItrue\fR|\fIfalse\fR] .RS 4 Enable directI/O, which lowers cpu usage while allocating/checking files\&. Turn off if you encounter any error\&. Default: -\fIfalse\fR +\fItrue\fR .RE .PP \fB\-\-file\-allocation\fR=METHOD diff --git a/doc/aria2c.1.html b/doc/aria2c.1.html index a5867351..b152b4f2 100644 --- a/doc/aria2c.1.html +++ b/doc/aria2c.1.html @@ -1292,7 +1292,7 @@ writes the piece to the appropriate files.

Enable directI/O, which lowers cpu usage while allocating/checking files. Turn off if you encounter any error. - Default: false + Default: true

@@ -2019,7 +2019,7 @@ files in the program, then also delete it here.

diff --git a/doc/aria2c.1.txt b/doc/aria2c.1.txt index c08105f9..bea04aa8 100644 --- a/doc/aria2c.1.txt +++ b/doc/aria2c.1.txt @@ -484,7 +484,7 @@ Advanced Options *--enable-direct-io*[='true'|'false']:: Enable directI/O, which lowers cpu usage while allocating/checking files. Turn off if you encounter any error. - Default: 'false' + Default: 'true' *--file-allocation*=METHOD:: Specify file allocation method. METHOD is either 'none' or 'prealloc'. diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index 1b57b082..49a4d1d6 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -146,7 +146,7 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() SharedHandle op(new BooleanOptionHandler (PREF_ENABLE_DIRECT_IO, TEXT_ENABLE_DIRECT_IO, - V_FALSE)); + V_TRUE)); op->addTag(TAG_ADVANCED); handlers.push_back(op); }