summaryrefslogtreecommitdiffabout
path: root/doc/wydawca.texi
authorSergey Poznyakoff <gray@gnu.org.ua>2008-08-22 21:35:59 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2008-08-22 21:35:59 (GMT)
commit7c856b66bb161761c8e9ff5b9a71756a2c411f4b (patch) (side-by-side diff)
tree5d97b6d72a8339555f2a9dd48a1d34c36a0a071b /doc/wydawca.texi
parent20e08ebe561d4ac2d1e9e26fcf74162b93f8555e (diff)
downloadwydawca-7c856b66bb161761c8e9ff5b9a71756a2c411f4b.tar.gz
wydawca-7c856b66bb161761c8e9ff5b9a71756a2c411f4b.tar.bz2
Normalize use of sendfile(2).
* src/wydawca.c (enable_sendfile): New global. * src/wydawca.h: Likewise. * src/config.c (enable-sendfile): New statement. * src/diskio.c (copy_file): Use enable_sendfile to decide whether to use sendfile. * doc/wydawca.texi: Document enable-sendfile. git-svn-id: file:///svnroot/wydawca/trunk@324 6bb4bd81-ecc2-4fd4-a2d4-9571d19c0d33
Diffstat (limited to 'doc/wydawca.texi') (more/less context) (ignore whitespace changes)
-rw-r--r--doc/wydawca.texi31
1 files changed, 31 insertions, 0 deletions
diff --git a/doc/wydawca.texi b/doc/wydawca.texi
index 02d650e..7a4827a 100644
--- a/doc/wydawca.texi
+++ b/doc/wydawca.texi
@@ -386,6 +386,7 @@ configuration on a step-by-step basis.
* syslog::
* sql::
* access methods::
+* copying::
* archivation::
* directory pairs::
* statistics::
@@ -729,6 +730,36 @@ verify-user sql default SELECT user.user_name \
@end smallexample
@end deffn
+@node copying
+@section Copying
+@cindex sendfile
+@cindex Invalid value, warning message
+@cindex Function not implemented, warning message
+ If compiled for GNU/Linux, @command{wydawca} tries to optimize disk
+transfer operations by using @code{sendfile} system call. If it
+fails, and the error is recoverable, @command{wydawca} falls back to
+copying files using user space. This is indicated by one of the following
+warning messages:
+
+@smallexample
+ sendfile: copying @var{source} to @var{dest} failed: Invalid value
+
+ sendfile: copying @var{source} to @var{dest} failed: Function not
+ implemented
+@end smallexample
+
+@kwindex enable-sendfile
+ If you encounter any of these, disable @code{sendfile} by adding the
+following to your configuration file:
+
+@smallexample
+enable-sendfile no
+@end smallexample
+
+ In particular, you need to disable sendfile when compiling
+@command{wydawca} for Linux kernels starting from version 2.6.9 and
+higher.
+
@node archivation
@section Archivation
@cindex archivation, defined

Return to:

Send suggestions and report system problems to the System administrator.