diff options
author | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2008-09-19 11:30:09 +0300 |
---|---|---|
committer | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2008-09-19 11:30:09 +0300 |
commit | 783e451ddefe81ef0c83412569b0a99c415f28d9 (patch) | |
tree | 23a256044ceedc93deb4576231473e8b26fc26a8 /options.c | |
parent | 06c2f31b8e3d8a5818f2bc28b554a8929a1f722f (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.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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*/ |