diff options
Diffstat (limited to 'libdiskfs')
-rw-r--r-- | libdiskfs/fsys-options.c | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/libdiskfs/fsys-options.c b/libdiskfs/fsys-options.c index 6bb5b55d..e52f582e 100644 --- a/libdiskfs/fsys-options.c +++ b/libdiskfs/fsys-options.c @@ -1,6 +1,6 @@ -/* - Copyright (C) 1994 Free Software Foundation, Inc. - Written by Michael I. Bushnell. +/* Parse run-time options + + Copyright (C) 1995 Free Software Foundation, Inc. This file is part of the GNU Hurd. @@ -18,6 +18,9 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include <errno.h> +#include <argz.h> + #include "priv.h" #include "fsys_S.h" @@ -27,5 +30,10 @@ diskfs_S_fsys_set_options (fsys_t fsys, char *data, mach_msg_type_number_t len, int do_children) { - return EOPNOTSUPP; + int argc = argz_count (data, len); + char **argv = alloca (sizeof (char *) * (argc + 1)); + + argz_extract (data, len, argv); + + return diskfs_set_options (argc, argv); } |