blob: 4b0901f2a3c1144b4afc74fbbadffba3bb5984eb [file] [log] [blame]
Eric Andersencc8ed391999-10-05 16:24:54 +00001/*
Eric Andersen596e5461999-10-07 08:30:23 +00002 * Mini mount implementation for busybox
3 *
Eric Andersenc4996011999-10-20 22:08:37 +00004 * Copyright (C) 1995, 1996 by Bruce Perens <bruce@pixar.com>.
Eric Andersen596e5461999-10-07 08:30:23 +00005 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 *
20 * 3/21/1999 Charles P. Wright <cpwright@cpwright.com>
21 * searches through fstab when -a is passed
22 * will try mounting stuff with all fses when passed -t auto
23 *
24 * 1999-04-17 Dave Cinege...Rewrote -t auto. Fixed ro mtab.
Eric Andersenc4996011999-10-20 22:08:37 +000025 *
26 * 1999-10-07 Erik Andersen <andersen@lineo.com>, <andersee@debian.org>.
Erik Andersen31638212000-01-15 22:28:50 +000027 * Rewrite of a lot of code. Removed mtab usage (I plan on
Eric Andersenc4996011999-10-20 22:08:37 +000028 * putting it back as a compile-time option some time),
29 * major adjustments to option parsing, and some serious
30 * dieting all around.
Erik Andersenb7cc49d2000-01-13 06:38:14 +000031 *
Erik Andersen31638212000-01-15 22:28:50 +000032 * 1999-11-06 mtab suppport is back - andersee
33 *
Erik Andersenb7cc49d2000-01-13 06:38:14 +000034 * 2000-01-12 Ben Collins <bcollins@debian.org>, Borrowed utils-linux's
35 * mount to add loop support.
36 */
Eric Andersencc8ed391999-10-05 16:24:54 +000037
38#include "internal.h"
39#include <stdlib.h>
40#include <unistd.h>
41#include <errno.h>
42#include <string.h>
43#include <stdio.h>
44#include <mntent.h>
45#include <sys/mount.h>
46#include <ctype.h>
Eric Andersen596e5461999-10-07 08:30:23 +000047#include <fstab.h>
Eric Andersencc8ed391999-10-05 16:24:54 +000048
Erik Andersenb7cc49d2000-01-13 06:38:14 +000049#if defined BB_FEATURE_MOUNT_LOOP
50#include <fcntl.h>
51#include <sys/ioctl.h>
52#include <linux/loop.h>
53
Erik Andersenb7cc49d2000-01-13 06:38:14 +000054
55static int use_loop = 0;
56#endif
57
Eric Andersend0246fb1999-11-04 21:18:07 +000058extern const char mtab_file[]; /* Defined in utility.c */
59
Eric Andersend73dc5b1999-11-10 23:13:02 +000060static const char mount_usage[] = "\tmount [flags]\n"
Eric Andersen596e5461999-10-07 08:30:23 +000061 "\tmount [flags] device directory [-o options,more-options]\n"
62 "\n"
63 "Flags:\n"
64 "\t-a:\tMount all file systems in fstab.\n"
Eric Andersend0246fb1999-11-04 21:18:07 +000065#ifdef BB_MTAB
66 "\t-f:\t\"Fake\" mount. Add entry to mount table but don't mount it.\n"
67 "\t-n:\tDon't write a mount table entry.\n"
68#endif
Eric Andersen596e5461999-10-07 08:30:23 +000069 "\t-o option:\tOne of many filesystem options, listed below.\n"
70 "\t-r:\tMount the filesystem read-only.\n"
71 "\t-t filesystem-type:\tSpecify the filesystem type.\n"
72 "\t-w:\tMount for reading and writing (default).\n"
73 "\n"
74 "Options for use with the \"-o\" flag:\n"
75 "\tasync / sync:\tWrites are asynchronous / synchronous.\n"
76 "\tdev / nodev:\tAllow use of special device files / disallow them.\n"
77 "\texec / noexec:\tAllow use of executable files / disallow them.\n"
Erik Andersenb7cc49d2000-01-13 06:38:14 +000078#if defined BB_FEATURE_MOUNT_LOOP
79 "\tloop: Mounts a file via loop device.\n"
80#endif
Eric Andersen596e5461999-10-07 08:30:23 +000081 "\tsuid / nosuid:\tAllow set-user-id-root programs / disallow them.\n"
82 "\tremount: Re-mount a currently-mounted filesystem, changing its flags.\n"
83 "\tro / rw: Mount for read-only / read-write.\n"
84 "\t"
85 "There are EVEN MORE flags that are specific to each filesystem.\n"
86 "You'll have to see the written documentation for those.\n";
Eric Andersencc8ed391999-10-05 16:24:54 +000087
Eric Andersend0246fb1999-11-04 21:18:07 +000088
Eric Andersencc8ed391999-10-05 16:24:54 +000089struct mount_options {
Eric Andersen596e5461999-10-07 08:30:23 +000090 const char *name;
91 unsigned long and;
92 unsigned long or;
Eric Andersencc8ed391999-10-05 16:24:54 +000093};
94
Eric Andersen596e5461999-10-07 08:30:23 +000095static const struct mount_options mount_options[] = {
96 {"async", ~MS_SYNCHRONOUS, 0},
97 {"defaults", ~0, 0},
98 {"dev", ~MS_NODEV, 0},
99 {"exec", ~MS_NOEXEC, 0},
100 {"nodev", ~0, MS_NODEV},
101 {"noexec", ~0, MS_NOEXEC},
102 {"nosuid", ~0, MS_NOSUID},
103 {"remount", ~0, MS_REMOUNT},
104 {"ro", ~0, MS_RDONLY},
105 {"rw", ~MS_RDONLY, 0},
106 {"suid", ~MS_NOSUID, 0},
107 {"sync", ~0, MS_SYNCHRONOUS},
108 {0, 0, 0}
Eric Andersencc8ed391999-10-05 16:24:54 +0000109};
110
Eric Andersend0246fb1999-11-04 21:18:07 +0000111static int
112do_mount(char* specialfile, char* dir, char* filesystemtype,
Eric Andersena9c95ea1999-11-15 17:33:30 +0000113 long flags, void* string_flags, int useMtab, int fakeIt, char* mtab_opts)
Eric Andersend0246fb1999-11-04 21:18:07 +0000114{
115 int status=0;
116
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000117#if defined BB_MTAB
Eric Andersend0246fb1999-11-04 21:18:07 +0000118 if (fakeIt==FALSE)
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000119#endif
120 {
121#if defined BB_FEATURE_MOUNT_LOOP
122 if (use_loop) {
123 int loro = flags & MS_RDONLY;
124 char *lofile = specialfile;
125 specialfile = find_unused_loop_device();
126 if (specialfile == NULL) {
127 fprintf(stderr, "Could not find a spare loop device\n");
Erik Andersen5cbdd712000-01-26 20:06:48 +0000128 return( FALSE);
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000129 }
130 if (set_loop (specialfile, lofile, 0, &loro)) {
131 fprintf(stderr, "Could not setup loop device\n");
Erik Andersen5cbdd712000-01-26 20:06:48 +0000132 return( FALSE);
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000133 }
134 if (!(flags & MS_RDONLY) && loro) { /* loop is ro, but wanted rw */
135 fprintf(stderr, "WARNING: loop device is read-only\n");
136 flags &= ~MS_RDONLY;
137 }
138 }
139#endif
Eric Andersend0246fb1999-11-04 21:18:07 +0000140 status=mount(specialfile, dir, filesystemtype, flags, string_flags);
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000141 }
Erik Andersen5cbdd712000-01-26 20:06:48 +0000142
143
144 /* If the mount was sucessful, do anything needed, then return TRUE */
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000145 if (status == 0) {
Erik Andersen5cbdd712000-01-26 20:06:48 +0000146
147#if defined BB_MTAB
148 if (useMtab==TRUE) {
Eric Andersena9c95ea1999-11-15 17:33:30 +0000149 write_mtab(specialfile, dir, filesystemtype, flags, mtab_opts);
Erik Andersen5cbdd712000-01-26 20:06:48 +0000150 }
Eric Andersend0246fb1999-11-04 21:18:07 +0000151#endif
Erik Andersen5cbdd712000-01-26 20:06:48 +0000152 return( TRUE);
153 }
154
155 /* Bummer. mount failed. Clean up */
156#if defined BB_FEATURE_MOUNT_LOOP
157 if (specialfile != NULL) {
158 del_loop(specialfile);
159 }
160#endif
161 return( FALSE);
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000162}
163
Eric Andersend0246fb1999-11-04 21:18:07 +0000164
Eric Andersencc8ed391999-10-05 16:24:54 +0000165
Erik Andersen0881de72000-01-05 09:34:26 +0000166#if defined BB_MTAB
167#define whine_if_fstab_is_missing() {}
168#else
169extern void whine_if_fstab_is_missing()
170{
171 struct stat statBuf;
172 if (stat("/etc/fstab", &statBuf) < 0)
173 fprintf(stderr, "/etc/fstab file missing -- install one to name /dev/root.\n\n");
174}
175#endif
176
177
Eric Andersen8341a151999-10-08 17:14:14 +0000178/* Seperate standard mount options from the nonstandard string options */
Eric Andersencc8ed391999-10-05 16:24:54 +0000179static void
Eric Andersen8341a151999-10-08 17:14:14 +0000180parse_mount_options ( char *options, unsigned long *flags, char *strflags)
Eric Andersencc8ed391999-10-05 16:24:54 +0000181{
Eric Andersen8341a151999-10-08 17:14:14 +0000182 while (options) {
183 int gotone=FALSE;
Eric Andersen596e5461999-10-07 08:30:23 +0000184 char *comma = strchr (options, ',');
185 const struct mount_options* f = mount_options;
186 if (comma)
187 *comma = '\0';
Eric Andersencc8ed391999-10-05 16:24:54 +0000188
Eric Andersen596e5461999-10-07 08:30:23 +0000189 while (f->name != 0) {
Eric Andersen596e5461999-10-07 08:30:23 +0000190 if (strcasecmp (f->name, options) == 0) {
Eric Andersen3ae0c781999-11-04 01:13:21 +0000191
Eric Andersen596e5461999-10-07 08:30:23 +0000192 *flags &= f->and;
193 *flags |= f->or;
Eric Andersen8341a151999-10-08 17:14:14 +0000194 gotone=TRUE;
195 break;
Eric Andersen596e5461999-10-07 08:30:23 +0000196 }
197 f++;
Eric Andersencc8ed391999-10-05 16:24:54 +0000198 }
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000199#if defined BB_FEATURE_MOUNT_LOOP
200 if (gotone==FALSE && !strcasecmp ("loop", options)) { /* loop device support */
201 use_loop = 1;
202 gotone=TRUE;
203 }
204#endif
Eric Andersen8341a151999-10-08 17:14:14 +0000205 if (*strflags && strflags!= '\0' && gotone==FALSE) {
206 char *temp=strflags;
207 temp += strlen (strflags);
208 *temp++ = ',';
209 *temp++ = '\0';
Eric Andersencc8ed391999-10-05 16:24:54 +0000210 }
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000211 if (gotone==FALSE)
Eric Andersen8341a151999-10-08 17:14:14 +0000212 strcat (strflags, options);
Eric Andersen596e5461999-10-07 08:30:23 +0000213 if (comma) {
214 *comma = ',';
215 options = ++comma;
Eric Andersen8341a151999-10-08 17:14:14 +0000216 } else {
Eric Andersen596e5461999-10-07 08:30:23 +0000217 break;
Eric Andersen8341a151999-10-08 17:14:14 +0000218 }
Eric Andersen596e5461999-10-07 08:30:23 +0000219 }
Eric Andersencc8ed391999-10-05 16:24:54 +0000220}
221
222int
Eric Andersend0246fb1999-11-04 21:18:07 +0000223mount_one(char *blockDevice, char *directory, char *filesystemType,
Eric Andersena9c95ea1999-11-15 17:33:30 +0000224 unsigned long flags, char *string_flags, int useMtab, int fakeIt, char *mtab_opts)
Eric Andersencc8ed391999-10-05 16:24:54 +0000225{
Eric Andersen596e5461999-10-07 08:30:23 +0000226 int status = 0;
Eric Andersencc8ed391999-10-05 16:24:54 +0000227
Eric Andersen596e5461999-10-07 08:30:23 +0000228 char buf[255];
Eric Andersencc8ed391999-10-05 16:24:54 +0000229
Eric Andersen0ecb54a1999-12-05 23:24:55 +0000230#if defined BB_FEATURE_USE_PROCFS
Eric Andersen596e5461999-10-07 08:30:23 +0000231 if (strcmp(filesystemType, "auto") == 0) {
232 FILE *f = fopen ("/proc/filesystems", "r");
Eric Andersencc8ed391999-10-05 16:24:54 +0000233
Eric Andersen596e5461999-10-07 08:30:23 +0000234 if (f == NULL)
235 return( FALSE);
Eric Andersencc8ed391999-10-05 16:24:54 +0000236
Eric Andersen596e5461999-10-07 08:30:23 +0000237 while (fgets (buf, sizeof (buf), f) != NULL) {
238 filesystemType = buf;
239 if (*filesystemType == '\t') { // Not a nodev filesystem
Eric Andersencc8ed391999-10-05 16:24:54 +0000240
Eric Andersen596e5461999-10-07 08:30:23 +0000241 // Add NULL termination to each line
242 while (*filesystemType && *filesystemType != '\n')
243 filesystemType++;
244 *filesystemType = '\0';
Eric Andersencc8ed391999-10-05 16:24:54 +0000245
Eric Andersen596e5461999-10-07 08:30:23 +0000246 filesystemType = buf;
247 filesystemType++; // hop past tab
248
Eric Andersend0246fb1999-11-04 21:18:07 +0000249 status = do_mount (blockDevice, directory, filesystemType,
Eric Andersena9c95ea1999-11-15 17:33:30 +0000250 flags | MS_MGC_VAL, string_flags, useMtab,
251 fakeIt, mtab_opts);
Erik Andersen5cbdd712000-01-26 20:06:48 +0000252 if (status == TRUE)
Eric Andersen596e5461999-10-07 08:30:23 +0000253 break;
254 }
Eric Andersencc8ed391999-10-05 16:24:54 +0000255 }
Eric Andersen596e5461999-10-07 08:30:23 +0000256 fclose (f);
Eric Andersen0ecb54a1999-12-05 23:24:55 +0000257 } else
258#endif
259 {
Eric Andersend0246fb1999-11-04 21:18:07 +0000260 status = do_mount (blockDevice, directory, filesystemType,
Eric Andersena9c95ea1999-11-15 17:33:30 +0000261 flags | MS_MGC_VAL, string_flags, useMtab,
262 fakeIt, mtab_opts);
Eric Andersen596e5461999-10-07 08:30:23 +0000263 }
Eric Andersencc8ed391999-10-05 16:24:54 +0000264
Erik Andersen5cbdd712000-01-26 20:06:48 +0000265 if (status==FALSE) {
Eric Andersen596e5461999-10-07 08:30:23 +0000266 fprintf (stderr, "Mounting %s on %s failed: %s\n",
267 blockDevice, directory, strerror(errno));
268 return (FALSE);
269 }
270 return (TRUE);
Eric Andersencc8ed391999-10-05 16:24:54 +0000271}
272
Eric Andersen596e5461999-10-07 08:30:23 +0000273extern int mount_main (int argc, char **argv)
Eric Andersencc8ed391999-10-05 16:24:54 +0000274{
Eric Andersena9c95ea1999-11-15 17:33:30 +0000275 char string_flags_buf[1024]="";
276 char *string_flags = string_flags_buf;
277 char *extra_opts = string_flags_buf;
Eric Andersen596e5461999-10-07 08:30:23 +0000278 unsigned long flags = 0;
279 char *filesystemType = "auto";
Eric Andersen8341a151999-10-08 17:14:14 +0000280 char *device = NULL;
281 char *directory = NULL;
Eric Andersend0246fb1999-11-04 21:18:07 +0000282 int all = FALSE;
283 int fakeIt = FALSE;
284 int useMtab = TRUE;
Eric Andersen8341a151999-10-08 17:14:14 +0000285 int i;
Eric Andersencc8ed391999-10-05 16:24:54 +0000286
Eric Andersen29d2e361999-11-06 06:07:27 +0000287 /* Only compiled in if BB_MTAB is not defined */
288 whine_if_fstab_is_missing();
Eric Andersencb6e2561999-10-16 15:48:40 +0000289
Eric Andersen596e5461999-10-07 08:30:23 +0000290 if (argc == 1) {
Eric Andersend0246fb1999-11-04 21:18:07 +0000291 FILE *mountTable = setmntent (mtab_file, "r");
292 if (mountTable) {
Eric Andersen596e5461999-10-07 08:30:23 +0000293 struct mntent *m;
294 while ((m = getmntent (mountTable)) != 0) {
Eric Andersencb6e2561999-10-16 15:48:40 +0000295 struct fstab* fstabItem;
Eric Andersen596e5461999-10-07 08:30:23 +0000296 char *blockDevice = m->mnt_fsname;
Eric Andersencb6e2561999-10-16 15:48:40 +0000297 /* Note that if /etc/fstab is missing, libc can't fix up /dev/root for us */
298 if (strcmp (blockDevice, "/dev/root") == 0) {
299 fstabItem = getfsfile ("/");
300 if (fstabItem != NULL)
301 blockDevice = fstabItem->fs_spec;
302 }
Eric Andersen596e5461999-10-07 08:30:23 +0000303 printf ("%s on %s type %s (%s)\n", blockDevice, m->mnt_dir,
304 m->mnt_type, m->mnt_opts);
305 }
306 endmntent (mountTable);
Eric Andersend0246fb1999-11-04 21:18:07 +0000307 } else {
308 perror(mtab_file);
Eric Andersencc8ed391999-10-05 16:24:54 +0000309 }
Eric Andersen3c163821999-10-14 22:16:57 +0000310 exit( TRUE);
Eric Andersen596e5461999-10-07 08:30:23 +0000311 }
Eric Andersencc8ed391999-10-05 16:24:54 +0000312
Eric Andersen596e5461999-10-07 08:30:23 +0000313
314 /* Parse options */
Eric Andersen8341a151999-10-08 17:14:14 +0000315 i = --argc;
316 argv++;
317 while (i > 0 && **argv) {
Eric Andersen596e5461999-10-07 08:30:23 +0000318 if (**argv == '-') {
Eric Andersena9c95ea1999-11-15 17:33:30 +0000319 char *opt = *argv;
320 while (i>0 && *++opt) switch (*opt) {
Eric Andersen596e5461999-10-07 08:30:23 +0000321 case 'o':
Eric Andersen8341a151999-10-08 17:14:14 +0000322 if (--i == 0) {
Eric Andersend73dc5b1999-11-10 23:13:02 +0000323 goto goodbye;
Eric Andersencc8ed391999-10-05 16:24:54 +0000324 }
Eric Andersen8341a151999-10-08 17:14:14 +0000325 parse_mount_options (*(++argv), &flags, string_flags);
Eric Andersen596e5461999-10-07 08:30:23 +0000326 break;
327 case 'r':
328 flags |= MS_RDONLY;
329 break;
330 case 't':
Eric Andersen8341a151999-10-08 17:14:14 +0000331 if (--i == 0) {
Eric Andersend73dc5b1999-11-10 23:13:02 +0000332 goto goodbye;
Eric Andersen596e5461999-10-07 08:30:23 +0000333 }
Eric Andersen8341a151999-10-08 17:14:14 +0000334 filesystemType = *(++argv);
Eric Andersen596e5461999-10-07 08:30:23 +0000335 break;
336 case 'w':
337 flags &= ~MS_RDONLY;
338 break;
339 case 'a':
Eric Andersen3ae0c781999-11-04 01:13:21 +0000340 all = TRUE;
Eric Andersen596e5461999-10-07 08:30:23 +0000341 break;
Eric Andersend0246fb1999-11-04 21:18:07 +0000342#ifdef BB_MTAB
343 case 'f':
344 fakeIt = TRUE;
345 break;
346 case 'n':
347 useMtab = FALSE;
348 break;
349#endif
Eric Andersen596e5461999-10-07 08:30:23 +0000350 case 'v':
351 case 'h':
352 case '-':
Eric Andersend73dc5b1999-11-10 23:13:02 +0000353 goto goodbye;
Eric Andersen8341a151999-10-08 17:14:14 +0000354 }
355 } else {
356 if (device == NULL)
357 device=*argv;
358 else if (directory == NULL)
359 directory=*argv;
360 else {
Eric Andersend73dc5b1999-11-10 23:13:02 +0000361 goto goodbye;
Eric Andersen596e5461999-10-07 08:30:23 +0000362 }
363 }
364 i--;
365 argv++;
366 }
367
Eric Andersen3ae0c781999-11-04 01:13:21 +0000368 if (all == TRUE) {
Eric Andersen596e5461999-10-07 08:30:23 +0000369 struct mntent *m;
370 FILE *f = setmntent ("/etc/fstab", "r");
371
372 if (f == NULL) {
373 perror("/etc/fstab");
Eric Andersen3c163821999-10-14 22:16:57 +0000374 exit( FALSE);
Eric Andersen596e5461999-10-07 08:30:23 +0000375 }
Eric Andersen596e5461999-10-07 08:30:23 +0000376 while ((m = getmntent (f)) != NULL) {
Eric Andersen3ae0c781999-11-04 01:13:21 +0000377 // If the file system isn't noauto, and isn't mounted on /,
378 // and isn't swap or nfs, then mount it
379 if ((!strstr (m->mnt_opts, "noauto")) &&
380 (m->mnt_dir[1] != '\0') &&
381 (!strstr (m->mnt_type, "swap")) &&
382 (!strstr (m->mnt_type, "nfs")))
383 {
Eric Andersend0246fb1999-11-04 21:18:07 +0000384 flags = 0;
Eric Andersen3ae0c781999-11-04 01:13:21 +0000385 *string_flags = '\0';
Eric Andersend0246fb1999-11-04 21:18:07 +0000386 parse_mount_options(m->mnt_opts, &flags, string_flags);
387 mount_one (m->mnt_fsname, m->mnt_dir, m->mnt_type,
Eric Andersena9c95ea1999-11-15 17:33:30 +0000388 flags, string_flags, useMtab, fakeIt, extra_opts);
Eric Andersen596e5461999-10-07 08:30:23 +0000389 }
Eric Andersencc8ed391999-10-05 16:24:54 +0000390 }
Eric Andersen596e5461999-10-07 08:30:23 +0000391 endmntent (f);
392 } else {
Eric Andersen8341a151999-10-08 17:14:14 +0000393 if (device && directory) {
Eric Andersena9c95ea1999-11-15 17:33:30 +0000394#ifdef BB_NFSMOUNT
395 if (strcmp(filesystemType, "nfs") == 0) {
396 if (nfsmount(device, directory, &flags, &extra_opts, &string_flags, 1) != 0)
397 exit(FALSE);
398 }
399#endif
Eric Andersen3c163821999-10-14 22:16:57 +0000400 exit (mount_one (device, directory, filesystemType,
Eric Andersena9c95ea1999-11-15 17:33:30 +0000401 flags, string_flags, useMtab, fakeIt, extra_opts));
Eric Andersencc8ed391999-10-05 16:24:54 +0000402 } else {
Eric Andersend73dc5b1999-11-10 23:13:02 +0000403 goto goodbye;
Eric Andersencc8ed391999-10-05 16:24:54 +0000404 }
Eric Andersen596e5461999-10-07 08:30:23 +0000405 }
Eric Andersen3c163821999-10-14 22:16:57 +0000406 exit( TRUE);
Eric Andersend73dc5b1999-11-10 23:13:02 +0000407
408goodbye:
409 usage( mount_usage);
Eric Andersencc8ed391999-10-05 16:24:54 +0000410}
Erik Andersenb7cc49d2000-01-13 06:38:14 +0000411