Don't recommend obsolete option 'safe_sync'.

This commit is contained in:
nick black
2025-02-25 18:17:17 -05:00
committed by Jari Sundell
parent 0adfc17335
commit 9465c94b31
3 changed files with 2 additions and 16 deletions
-4
View File
@@ -499,10 +499,6 @@ Number of attempts to check the hash while using the mincore status,
before forcing. Overworked systems might need lower values to get a before forcing. Overworked systems might need lower values to get a
decent hash checking rate. decent hash checking rate.
.TP .TP
\fBsafe_sync = \fIyes|no\fB\fR
Always use MS_SYNC rather than MS_ASYNC when syncing chunks. This may
be nessesary in case of filesystem bugs like NFS in linux ~2.6.13.
.TP
\fBmax_open_files = \fIvalue\fB\fR \fBmax_open_files = \fIvalue\fB\fR
Number of files to simultaneously keep open. LibTorrent dynamically Number of files to simultaneously keep open. LibTorrent dynamically
opens and closes files as necessary when mapping files to opens and closes files as necessary when mapping files to
-10
View File
@@ -978,16 +978,6 @@ decent hash checking rate.
</para></listitem> </para></listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term>safe_sync = <replaceable>yes|no</replaceable></term>
<listitem><para>
Always use MS_SYNC rather than MS_ASYNC when syncing chunks. This may
be nessesary in case of filesystem bugs like NFS in linux ~2.6.13.
</para></listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term>max_open_files = <replaceable>value</replaceable></term> <term>max_open_files = <replaceable>value</replaceable></term>
<listitem><para> <listitem><para>
+2 -2
View File
@@ -513,8 +513,8 @@ DownloadList::hash_done(Download* download) {
if (download->is_done()) { if (download->is_done()) {
confirm_finished(download); confirm_finished(download);
} else { } else {
download->set_message("Hash check on download completion found bad chunks, consider using \"safe_sync\"."); download->set_message("Hash check on download completion found bad chunks.");
lt_log_print(torrent::LOG_TORRENT_ERROR, "Hash check on download completion found bad chunks, consider using \"safe_sync\"."); lt_log_print(torrent::LOG_TORRENT_ERROR, "Hash check on download completion found bad chunks.");
DL_TRIGGER_EVENT(download, "event.download.hash_final_failed"); DL_TRIGGER_EVENT(download, "event.download.hash_final_failed");
} }