summaryrefslogtreecommitdiff
path: root/libdiskfs/priv.h
diff options
context:
space:
mode:
authorMarcus Brinkmann <marcus@gnu.org>2000-05-14 20:35:53 +0000
committerMarcus Brinkmann <marcus@gnu.org>2000-05-14 20:35:53 +0000
commitd699bf4063041c0be2e874a639880b59078eefdc (patch)
tree678a556b407c8ed770d93270e5d1374fa1b17c45 /libdiskfs/priv.h
parentbe15ddb8f111be6e9ad0049e586005366e144a04 (diff)
2000-05-14 Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de>
* priv.h (DEFAULT_SYNC_INTERVAL): New macro. (DEFAULT_SYNC_INTERVAL_STRING): Likewise. (STRINGIFY): Likewise. (STRINGIFY_1): Likewise. * opts-common.h (diskfs_common_options): Use DEFAULT_SYNC_INTERVAL_STRING instead hardcoded value. * sync-default.h: Include "priv.h". Use DEFAULT_SYNC_INTERVAL instead hardcoded value.
Diffstat (limited to 'libdiskfs/priv.h')
-rw-r--r--libdiskfs/priv.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h
index 57d00e66..fd69af9c 100644
--- a/libdiskfs/priv.h
+++ b/libdiskfs/priv.h
@@ -52,6 +52,11 @@ extern const struct argp_option diskfs_common_options[];
#define OPT_EXEC_OK 601 /* --exec-ok */
#define OPT_ATIME 602 /* --atime */
+/* Common value for diskfs_common_options and diskfs_default_sync_interval. */
+#define DEFAULT_SYNC_INTERVAL 5
+#define DEFAULT_SYNC_INTERVAL_STRING STRINGIFY(DEFAULT_SYNC_INTERVAL)
+#define STRINGIFY(x) STRINGIFY_1(x)
+#define STRINGIFY_1(x) #x
/* Diskfs thinks the disk is dirty if this is set. */
extern int _diskfs_diskdirty;