summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-09-07 00:30:29 +0000
committerRoger Dingledine <arma@torproject.org>2006-09-07 00:30:29 +0000
commit5a8563baedd55062305094637d9701b2cf52abde (patch)
tree4f30db26b52a5e760a11072d014a3fbd09ddc6df /src
parent7ed528c5c5a2f629bcf42de92ddcf3d784b26f0f (diff)
downloadtor-5a8563baedd55062305094637d9701b2cf52abde.tar.gz
tor-5a8563baedd55062305094637d9701b2cf52abde.zip
new config option AvoidDiskWrites for people running tors on
usb keys and other media that degrades when you write. not implemented yet, so just a reminder. svn:r8331
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c1
-rw-r--r--src/or/or.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/or/config.c b/src/or/config.c
index d6c4a1efca..da0fae43f7 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -131,6 +131,7 @@ static config_var_t _option_vars[] = {
VAR("AuthDirReject", LINELIST, AuthDirReject, NULL),
VAR("AuthDirRejectUnlisted",BOOL, AuthDirRejectUnlisted,"0"),
VAR("AuthoritativeDirectory",BOOL, AuthoritativeDir, "0"),
+ VAR("AvoidDiskWrites", BOOL, AvoidDiskWrites, "0"),
VAR("BandwidthBurst", MEMUNIT, BandwidthBurst, "6 MB"),
VAR("BandwidthRate", MEMUNIT, BandwidthRate, "3 MB"),
VAR("CircuitBuildTimeout", INTERVAL, CircuitBuildTimeout, "1 minute"),
diff --git a/src/or/or.h b/src/or/or.h
index b1de27902a..f3ad5bd9fa 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -1429,6 +1429,8 @@ typedef struct {
int VersioningAuthoritativeDir; /**< Boolean: is this an authoritative
* directory that's willing to recommend
* versions? */
+ int AvoidDiskWrites; /**< Boolean: should we never cache things to disk?
+ * Not used yet. */
int ClientOnly; /**< Boolean: should we never evolve into a server role? */
int NoPublish; /**< Boolean: should we never publish a descriptor? */
int PublishServerDescriptor; /**< Do we publish our descriptor as normal? */