diff options
author | Erik Andersen | 2000-05-12 19:41:47 +0000 |
---|---|---|
committer | Erik Andersen | 2000-05-12 19:41:47 +0000 |
commit | 7ab9c7ee52db8759d457819f5480378fa3aa97cc (patch) | |
tree | 37ef0fb8b142a4925b866c7caa5207b71b4ecae6 /util-linux/mount.c | |
parent | 3d427ac5efd249dc25dd03deb30520335f68911a (diff) | |
download | busybox-7ab9c7ee52db8759d457819f5480378fa3aa97cc.zip busybox-7ab9c7ee52db8759d457819f5480378fa3aa97cc.tar.gz |
Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP
which lets you compile out most of the "--help" output, saving
up to 17k.
Renamed mnc to nc.
-Erik
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r-- | util-linux/mount.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 00a774a..bde55d1 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -64,10 +64,12 @@ static int use_loop = FALSE; extern const char mtab_file[]; /* Defined in utility.c */ -static const char mount_usage[] = "\tmount [flags]\n" - "\tmount [flags] device directory [-o options,more-options]\n" - "\n" "Flags:\n" - "\t-a:\t\tMount all file systems in fstab.\n" +static const char mount_usage[] = + "mount [flags] device directory [-o options,more-options]\n" +#ifndef BB_FEATURE_TRIVIAL_HELP + "\nMount a filesystem\n\n" + "Flags:\n" + "\t-a:\t\tMount all filesystems in fstab.\n" #ifdef BB_MTAB "\t-f:\t\t\"Fake\" mount. Add entry to mount table but don't mount it.\n" "\t-n:\t\tDon't write a mount table entry.\n" @@ -88,8 +90,10 @@ static const char mount_usage[] = "\tmount [flags]\n" "\tsuid/nosuid:\tAllow set-user-id-root programs / disallow them.\n" "\tremount:\tRe-mount a currently-mounted filesystem, changing its flags.\n" "\tro/rw:\t\tMount for read-only / read-write.\n" - "There are EVEN MORE flags that are specific to each filesystem.\n" - "You'll have to see the written documentation for those.\n"; + "\nThere are EVEN MORE flags that are specific to each filesystem.\n" + "You'll have to see the written documentation for those.\n" +#endif + ; struct mount_options { @@ -451,7 +455,7 @@ extern int mount_main(int argc, char **argv) fatalError( "\nCannot read /etc/fstab: %s\n", strerror (errno)); while ((m = getmntent(f)) != NULL) { - // If the file system isn't noauto, + // If the filesystem isn't noauto, // and isn't swap or nfs, then mount it if ((!strstr(m->mnt_opts, "noauto")) && (!strstr(m->mnt_type, "swap")) && |