From 60a3d46123998f51c6dffba7d0eddf4b8013fb18 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 9 Jun 2002 00:33:27 +0000 Subject: [PATCH] * mount.cc (opts): Remove '-i' option. (usage): Ditto. (main): Ditto. (longopts): Remove --import-old-mounts option. --- winsup/utils/ChangeLog | 7 +++++++ winsup/utils/mount.cc | 18 +----------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 395fabb5b..f2414107f 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,10 @@ +2002-06-08 Christopher Faylor + + * mount.cc (opts): Remove '-i' option. + (usage): Ditto. + (main): Ditto. + (longopts): Remove --import-old-mounts option. + 2002-06-07 David Peterson Christopher Faylor diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc index 62c50ebbe..7c2f2a172 100644 --- a/winsup/utils/mount.cc +++ b/winsup/utils/mount.cc @@ -118,7 +118,6 @@ static struct option longopts[] = {"executable", no_argument, NULL, 'x'}, {"force", no_argument, NULL, 'f'}, {"help", no_argument, NULL, 'h' }, - {"import-old-mounts", no_argument, NULL, 'i'}, {"mount-commands", no_argument, NULL, 'm'}, {"no-executable", no_argument, NULL, 'E'}, {"show-cygdrive-prefix", no_argument, NULL, 'p'}, @@ -129,7 +128,7 @@ static struct option longopts[] = {NULL, 0, NULL, 0} }; -static char opts[] = "bcfhimpstuvxEX"; +static char opts[] = "bcfhmpstuvxEX"; static void usage (FILE *where = stderr) @@ -141,8 +140,6 @@ usage (FILE *where = stderr) -f, --force force mount, don't warn about missing mount\n\ point directories\n\ -h, --help output usage information and exit\n\ - -i, --import-old-mounts copy old registry mount table mounts into the\n\ - current mount areas\n\ -m, --mount-commands write mount commands to replace user and\n\ system mount points and cygdrive prefixes\n\ -p, --show-cygdrive-prefix show user and/or system cygdrive path prefix\n\ @@ -191,7 +188,6 @@ main (int argc, char **argv) { nada, saw_change_cygdrive_prefix, - saw_import_old_mounts, saw_show_cygdrive_prefix, saw_mount_commands } do_what = nada; @@ -228,12 +224,6 @@ main (int argc, char **argv) case 'h': usage (stdout); break; - case 'i': - if (do_what == nada) - do_what = saw_import_old_mounts; - else - usage (); - break; case 'm': if (do_what == nada) do_what = saw_mount_commands; @@ -287,12 +277,6 @@ main (int argc, char **argv) usage (); change_cygdrive_prefix (argv[optind], flags); break; - case saw_import_old_mounts: - if (optind <= argc) - usage (); - else - cygwin_internal (CW_READ_V1_MOUNT_TABLES); - break; case saw_show_cygdrive_prefix: if (optind <= argc) usage ();