From a2d56b832d227468534602a54e3a0991f6c720c0 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Sun, 11 Apr 2010 13:32:41 +0000 Subject: [PATCH] (trunk libT) back out r10075, because r10336 addresses the same problem in a better way. r10075 changed the default preallocation to `full' if fallocate64() is present, and r10336 added fallocate64() as the first-attempt mechanism for `fast' preallocation --- libtransmission/session.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/libtransmission/session.c b/libtransmission/session.c index 3a0d5e861..cbcf60950 100644 --- a/libtransmission/session.c +++ b/libtransmission/session.c @@ -260,11 +260,7 @@ tr_sessionGetDefaultSettings( const char * configDir, tr_benc * d ) tr_bencDictAddInt ( d, TR_PREFS_KEY_PEER_SOCKET_TOS, atoi( TR_DEFAULT_PEER_SOCKET_TOS_STR ) ); tr_bencDictAddBool( d, TR_PREFS_KEY_PEX_ENABLED, TRUE ); tr_bencDictAddBool( d, TR_PREFS_KEY_PORT_FORWARDING, TRUE ); -#ifdef HAVE_FALLOCATE64 - tr_bencDictAddInt ( d, TR_PREFS_KEY_PREALLOCATION, TR_PREALLOCATE_FULL ); -#else tr_bencDictAddInt ( d, TR_PREFS_KEY_PREALLOCATION, TR_PREALLOCATE_SPARSE ); -#endif tr_bencDictAddStr ( d, TR_PREFS_KEY_PROXY, "" ); tr_bencDictAddBool( d, TR_PREFS_KEY_PROXY_AUTH_ENABLED, FALSE ); tr_bencDictAddBool( d, TR_PREFS_KEY_PROXY_ENABLED, FALSE ); -- 2.40.0