summaryrefslogtreecommitdiff
path: root/ulfs.h
diff options
context:
space:
mode:
authorGianluca Guida <glguida@gmail.com>2005-06-30 18:49:55 +0000
committerGianluca Guida <glguida@gmail.com>2005-06-30 18:49:55 +0000
commit3054767a46e0142cacef895c13edb4391435c722 (patch)
treec3dd42959eabd48d87bb7d4c66c325197943c245 /ulfs.h
parentecdca81b8c88107d4a23dd412f603d5b8ddd43bf (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 'ulfs.h')
-rw-r--r--ulfs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ulfs.h b/ulfs.h
index dbb59d3..186718c 100644
--- a/ulfs.h
+++ b/ulfs.h
@@ -27,6 +27,7 @@ typedef struct ulfs
{
char *path;
int flags;
+ int priority;
struct ulfs *next, *prev;
} ulfs_t;
@@ -49,7 +50,7 @@ extern unsigned int ulfs_num;
extern struct mutex ulfs_lock;
/* Register a new underlying filesystem. */
-error_t ulfs_register (char *path, int flags);
+error_t ulfs_register (char *path, int flags, int priority);
/* Unregister an underlying filesystem. */
error_t ulfs_unregister (char *path);