summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2008-09-19 11:30:09 +0300
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2008-09-19 11:30:09 +0300
commit783e451ddefe81ef0c83412569b0a99c415f28d9 (patch)
tree23a256044ceedc93deb4576231473e8b26fc26a8 /options.c
parent06c2f31b8e3d8a5818f2bc28b554a8929a1f722f (diff)
Added the mechanism of maintaining shadow nodes alive.
I refactored the node cache in such a way that it now only maintains references to nodes (the reason is that only directory nodes and shadow nodes are created, therefore the existing node cache is very well suited for this purpose). It must be remarked that the node cache, borrowed from unionfs, has never actually been a *cache*, therefore this small change does not alter things badly. I also removed the command line option --ncache-size.
Diffstat (limited to 'options.c')
-rw-r--r--options.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/options.c b/options.c
index 55a0ea5ad..1117766a9 100644
--- a/options.c
+++ b/options.c
@@ -80,8 +80,9 @@ static int parsing_startup_options_finished;
/*Argp options common to both the runtime and the startup parser*/
static const struct argp_option argp_common_options[] =
{
- {OPT_LONG_CACHE_SIZE, OPT_CACHE_SIZE, "SIZE", 0,
- "The maximal number of nodes in the node cache"}
+ /*{OPT_LONG_CACHE_SIZE, OPT_CACHE_SIZE, "SIZE", 0,
+ "The maximal number of nodes in the node cache"}*/
+ {0}
};
/*----------------------------------------------------------------------------*/
/*Argp options only meaningful for startup parsing*/
@@ -147,13 +148,13 @@ argp_parse_common_options
/*Go through the possible options*/
switch(key)
{
- case OPT_CACHE_SIZE:
- {
+ /*case OPT_CACHE_SIZE:
+ {*/
/*store the new cache-size*/
- ncache_size = strtol(arg, NULL, 10);
+ /*ncache_size = strtol(arg, NULL, 10);
break;
- }
+ }*/
case ARGP_KEY_ARG: /*the directory to mirror*/
{
/*try to duplicate the directory name*/