summaryrefslogtreecommitdiff
path: root/libdiskfs/diskfs.h
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-05-20 01:26:09 +0000
committerMiles Bader <miles@gnu.org>1995-05-20 01:26:09 +0000
commitab21789e767ffc9b3e87947c8ea5fbef70dbffc0 (patch)
tree9ad9fac44f07ee5c308a5517e04ab1a0adf19809 /libdiskfs/diskfs.h
parent8d24e083e44f9c30e0302c4e710cf5f46c24865e (diff)
(diskfs_standard_startup_options): Declare new variable.
(diskfs_set_options): Declare new function. (diskfs_parse_runtime_options): Ditto. Include <options.h> (currently in ../lib).
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r--libdiskfs/diskfs.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h
index 9c4e2bbf..2720eb6a 100644
--- a/libdiskfs/diskfs.h
+++ b/libdiskfs/diskfs.h
@@ -18,6 +18,7 @@
#ifndef _HURD_DISKFS
#define _HURD_DISKFS
+#include <options.h>
#include <assert.h>
/* Each user port referring to a file points to one of these
@@ -450,6 +451,17 @@ struct pager *diskfs_get_filemap_pager_struct (struct node *np);
environment (complete with auth and proc ports). */
void diskfs_init_completed ();
+/* The user may define this function, in which case it is called when the
+ the filesystem receives a set-options request. ARGC and ARGV are the
+ arguments given, and STANDARD_OPTIONS is a pointer to a struct options
+ containing the info necessary to parse `standard' diskfs options. The
+ user may chain this onto the end of his own options structure and call
+ options_parse, or ignore it completely (or indeed, just call options_parse
+ on it -- which is the behavior of the default implementation of this
+ function. EINVAL is returned if an unknown option is encountered. */
+error_t diskfs_parse_runtime_options (int argc, char **argv,
+ struct options *standard_options);
+
/* It is assumed that the user will use the Hurd pager library; if not
you need to redefine ports_demuxer and
diskfs_do_seqnos_mach_notify_no_senders. */
@@ -914,6 +926,16 @@ error_t diskfs_execboot_fsys_startup (mach_port_t port, mach_port_t ctl,
syncs, regardless. */
error_t diskfs_set_sync_interval (int interval);
+/* Parse and execute the runtime options in ARGC and ARGV. EINVAL is
+ returned if some option is unrecognized. */
+error_t diskfs_set_options (int argc, char **argv);
+
+/* A pointer to an options structure for the standard diskfs command line
+ options. The user may call options_parse on this to parse the command
+ line, chain it onto the end of his own options structure, or ignore it
+ completely. */
+extern struct options *diskfs_standard_startup_options;
+
/* The ports library requires the following to be defined; the diskfs
library provides a definition. See <hurd/ports.h> for the
interface description. The library assumes you use the pager