summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-26 13:16:23 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-29 12:36:53 +0200
commit80a50c59331faf268947f97ca702cb9a1d9881cd (patch)
treed3175086223dca2f92f1514871a7cb9b2cfd0905 /libdiskfs
parent095e5cb398048c939b926094dcdaee6d1a7f3903 (diff)
libdiskfs: set the default sync interval to 30 seconds
The default sync interval has been changed in 9e55fdd7 from 30 to 5 seconds. This change was not reflected in the documentation. At least for current hardware, using 30 seconds instead of just 5 alleviates the thread-storm problem. Make 30 seconds the default again. * libdiskfs/priv.h (DEFAULT_SYNC_INTERVAL): Set to 30 seconds.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/priv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h
index 4363a00a..2ac3c9ef 100644
--- a/libdiskfs/priv.h
+++ b/libdiskfs/priv.h
@@ -63,7 +63,7 @@ extern const struct argp_option diskfs_common_options[];
#define OPT_INHERIT_DIR_GROUP 604 /* --inherit-dir-group */
/* Common value for diskfs_common_options and diskfs_default_sync_interval. */
-#define DEFAULT_SYNC_INTERVAL 5
+#define DEFAULT_SYNC_INTERVAL 30
#define DEFAULT_SYNC_INTERVAL_STRING STRINGIFY(DEFAULT_SYNC_INTERVAL)
#define STRINGIFY(x) STRINGIFY_1(x)
#define STRINGIFY_1(x) #x