diff options
author | Gianluca Guida <glguida@gmail.com> | 2005-06-30 18:49:55 +0000 |
---|---|---|
committer | Gianluca Guida <glguida@gmail.com> | 2005-06-30 18:49:55 +0000 |
commit | 3054767a46e0142cacef895c13edb4391435c722 (patch) | |
tree | c3dd42959eabd48d87bb7d4c66c325197943c245 /options.h | |
parent | ecdca81b8c88107d4a23dd412f603d5b8ddd43bf (diff) |
2005-06-27 Ben Asselstine <benasselstine@gmail.com>
* ulfs.c (ulfs_install): Rewrote to allow insertions of
filesystems based on priority.
(ulfs_register): Added new argument 'priority'. Set the priority
value in ulfs structure.
* ulfs.h (ulfs): Added 'priority' field to struct.
Updated ulfs_register declaration.
* netfs.c (netfs_append_args): Appending new priority option.
* stow.c (stow_privdata): Added 'priority' field to struct.
(stow_diradd): Added new 'priority' argument. Fill priority field
of 'mypriv'.
(_stow_scanstowentry): Changed caller to ulfs_register.
(_stow_registermatchingdirs): Likewise.
* options.c (arg_common_options): Added entries for OPT_PRIORITY
and OPT_ADD.
(arg_parse_common_options): Handle OPT_PRIORITY and OPT_ADD
case. Renamed 'ulfs_removed' to 'ulfs_mode'. New variable
'ulfs_priority'. Changed caller to 'stow_diradd'. Changed caller
to 'ulfs_register'.
* options.h (OPT_ADD, OPT_PRIORITY, OPT_LONG_ADD)
(OPT_LONG_PRIORITY, ULFS_MODE_ADD, ULFS_MODE_REMOVE): New
declarations.
Diffstat (limited to 'options.h')
-rw-r--r-- | options.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -25,7 +25,9 @@ #define OPT_DEBUG 'd' #define OPT_CACHE_SIZE 'c' #define OPT_REMOVE 'r' +#define OPT_ADD 'a' #define OPT_PATTERN 'm' +#define OPT_PRIORITY 'p' #define OPT_STOW 's' /* The long options. */ @@ -34,7 +36,9 @@ #define OPT_LONG_DEBUG "debug" #define OPT_LONG_CACHE_SIZE "cache-size" #define OPT_LONG_REMOVE "remove" +#define OPT_LONG_ADD "add" #define OPT_LONG_PATTERN "match" +#define OPT_LONG_PRIORITY "priority" #define OPT_LONG_STOW "stow" #define OPT_LONG(o) "--" o @@ -44,3 +48,6 @@ extern struct argp argp_startup; /* The final argp parser for startup arguments. */ extern struct argp argp_runtime; + +#define ULFS_MODE_ADD 0 +#define ULFS_MODE_REMOVE 1 |