OSDN Git Service

* mount.cc (opts): Remove '-i' option.
authorcgf <cgf>
Sun, 9 Jun 2002 00:33:27 +0000 (00:33 +0000)
committercgf <cgf>
Sun, 9 Jun 2002 00:33:27 +0000 (00:33 +0000)
(usage): Ditto.
(main): Ditto.
(longopts): Remove --import-old-mounts option.

winsup/utils/ChangeLog
winsup/utils/mount.cc

index 395fabb..f241410 100644 (file)
@@ -1,3 +1,10 @@
+2002-06-08  Christopher Faylor  <cgf@redhat.com>
+
+       * mount.cc (opts): Remove '-i' option.
+       (usage): Ditto.
+       (main): Ditto.
+       (longopts): Remove --import-old-mounts option.
+
 2002-06-07  David Peterson  <chief@mail.idrive.com>
            Christopher Faylor  <cgf@redhat.com>
 
index 62c50eb..7c2f2a1 100644 (file)
@@ -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 ();